re PR rtl-optimization/70886 (-frename-registers causes boostrap comparison failures...
[gcc.git] / gcc / ChangeLog
1 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
2
3 PR rtl-optimization/70886
4 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
5
6 * cselib.h (rtx_equal_for_cselib_1): Declare.
7 (rtx_equal_for_cselib_p: New inline function.
8 * cselib.c (rtx_equal_for_cselib_p): Delete.
9 (rtx_equal_for_cselib_1): Make public.
10
11 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
12
13 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
14 (register_mixssei387nonimm_operand): Remove predicate.
15 * config/i386/i386.md (*fop_<mode>_comm): Merge from
16 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
17 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
18 for TARGET_MIX_SSE_I387 alternatives.
19 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
20 Disable unsupported alternatives using "enabled" attribute. Use
21 nonimm_ssenomem_operand as operand 1 predicate. Also check
22 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
23 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
24 (register_mixssei387nonimm_operand): Remove predicate.
25
26 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
27
28 * tree.c (cst_and_fits_in_hwi): Simplify.
29
30 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
31
32 * tree.h (wi::to_wide): New function.
33 * expr.c (expand_expr_real_1): Use wi::to_wide.
34 * fold-const.c (int_const_binop_1): Likewise.
35 (extract_muldiv_1): Likewise.
36
37 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
38
39 * wide-int.h: Update offset_int and widest_int documentation.
40 (WI_SIGNED_SHIFT_RESULT): New macro.
41 (wi::binary_shift): Define signed_shift_result_type for
42 shifts on offset_int- and widest_int-like types.
43 (generic_wide_int): Support <<= and >>= if << and >> are supported.
44 * tree.h (int_bit_position): Use shift operators instead of wi::
45 shifts.
46 * alias.c (adjust_offset_for_component_ref): Likewise.
47 * expr.c (get_inner_reference): Likewise.
48 * fold-const.c (fold_comparison): Likewise.
49 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
50 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
51 * tree-dfa.c (get_ref_base_and_extent): Likewise.
52 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
53 (stmt_kills_ref_p): Likewise.
54 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
55 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
56 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
57 (ao_ref_init_from_vn_reference): Likewise.
58
59 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
60
61 * wide-int.h: Update offset_int and widest_int documentation.
62 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
63 (wi::binary_traits): Allow ordered comparisons between offset_int and
64 offset_int, between widest_int and widest_int, and between either
65 of these types and basic C types.
66 (operator <, <=, >, >=): Define for the same combinations.
67 * tree.h (tree_int_cst_lt): Use comparison operators instead
68 of wi:: comparisons.
69 (tree_int_cst_le): Likewise.
70 * gimple-fold.c (fold_array_ctor_reference): Likewise.
71 (fold_nonarray_ctor_reference): Likewise.
72 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
73 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
74 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
75 * tree-sra.c (completely_scalarize): Likewise.
76 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
77 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
78 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
79 (check_for_binary_op_overflow): Likewise.
80 (search_for_addr_array): Likewise.
81 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
82
83 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
84
85 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
86 (arc_save_restore): Likewise.
87 (arc_dwarf_register_span): Likewise.
88 (arc_output_pic_addr_const): Initialize suffix variable.
89
90 2016-05-02 Martin Liska <mliska@suse.cz>
91
92 * symbol-summary.h (function_summary::function_summary):
93 Remove checking assert for all cgraph nodes.
94 (function_summary::get): Check summary_uid.
95 (symtab_insertion): Check summary_uid.
96
97 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
98
99 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
100 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
101 bmaskn instruction.
102 (arc_dwarf_register_span): Remove enum keyword.
103 (compact_memory_operand_p): New function.
104 * config/arc/arc.h (reg_class): Add code density register classes.
105 (REG_CLASS_NAMES): Likewise.
106 (REG_CLASS_CONTENTS): Likewise.
107 * config/arc/arc.md (*movqi_insn): Add code density instructions.
108 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
109 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
110 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
111 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
112 constraints.
113 (h, Rcd, Rsd, Rzd): New register constraints.
114 (T): Use compact_memory_operand_p function.
115 * config/arc/predicates.md (compact_load_memory_operand): Remove.
116
117 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
118
119 * config/sh/sh.md (*negnegt, *movtt): Remove.
120
121 2016-05-02 Marek Polacek <polacek@redhat.com>
122 Tom de Vries <tom@codesourcery.com>
123
124 PR tree-optimization/70700
125 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
126 bigger than FIRST_REF_NODE.
127
128 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
129
130 PR target/52898
131 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
132 TARGET_CMPEQDI_T.
133 (prepare_cbranch_operands): Don't use scratch register. Assume that
134 function is used when pseudos can be created.
135 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
136 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
137 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
138 define_expand. Allow it only when pseudos can be created.
139 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
140
141 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
142
143 * config/i386/constraints.md (BC): Only allow -1 operands.
144 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
145 Add "enabled" attribute. Update XI mode attribute calculation.
146 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
147 (*movoi_internal_avx): Update XI mode attribute calculation.
148 (*movti_internal): Ditto.
149
150 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
151
152 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
153 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
154
155 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
156
157 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
158 statement on instruction code. Remove trailing spaces.
159 (altivec_expand_stv_builtin): Likewise.
160
161 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
162
163 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
164 (TARGET_FPU_DOUBLE): Simplify.
165 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
166 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
167 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
168 with 'TARGET_FPU_DOUBLE'.
169 * config/sh/sh.md: Likewise.
170
171 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
172
173 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
174 SH_DIV_STR_FOR_SIZE): Remove.
175 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
176 SH_DIV_STR_FOR_SIZE): Remove.
177
178 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
179
180 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
181 logical_reg_operand): Delete.
182 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
183 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
184 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
185 match_operand and match_test.
186 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
187 variables on their first use. Return bool values.
188 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
189 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
190 arith_reg_operand for input operand. Remove empty constraints.
191 (xorsi3): Delete.
192 (*xorsi3_compact): Rename to xorsi3.
193 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
194 (*zero_extend<mode>si2_disp_mem): Update comment.
195 (mov_nop): Delete.
196
197 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
198
199 * config/sh/t-sh: Remove SH5 support.
200 * config.gcc: Likewise.
201 * configure: Likewise.
202
203 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
204
205 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
206
207 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
208
209 * config/sh/sh.c (register_sh_passes, sh_option_override,
210 sh_print_operand, prepare_move_operands,
211 sh_can_follow_jump): Remove TARGET_SH1 checks.
212 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
213 PROMOTE_MODE): Likewise.
214 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
215 movdi): Likewise.
216
217 2016-04-30 Alan Modra <amodra@gmail.com>
218
219 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
220 restoring when fixed_reg_p, but allow out-of-line or stmw save.
221 Check for user regs later to avoid unnecessary looping over regs.
222 Merge user reg check with non-saved reg check. Don't force
223 inline VR restore when static chain used.
224 (rs6000_frame_related): Omit eh_frame info for user regs when
225 saving.
226 (fixed_regs_p): Delete.
227
228 2016-04-30 Alan Modra <amodra@gmail.com>
229
230 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
231 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
232 Update all uses.
233
234 2016-04-30 Alan Modra <amodra@gmail.com>
235
236 PR target/69645
237 * config/rs6000/rs6000.c (fixed_reg_p): New function.
238 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
239 Update all uses.
240
241 2016-04-30 Alan Modra <amodra@gmail.com>
242
243 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
244 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
245 flag_pic test for Darwin.
246
247 2016-04-30 Alan Modra <amodra@gmail.com>
248
249 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
250 throw_calls_crossed.
251 (REG_FREQ_CALLS_CROSSED): Delete.
252 (REG_N_THROWING_CALLS_CROSSED): Delete.
253 * regstat.c (regstat_bb_compute_ri): Don't calculate
254 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
255 (dump_reg_info): Don't print call cross frequency.
256 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
257 and REG_N_THROWING_CALLS_CROSSED.
258
259 2016-04-30 Alan Modra <amodra@gmail.com>
260
261 * regs.h (struct reg_info_t): Delete live_length.
262 (REG_LIVE_LENGTH): Delete macro.
263 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
264 local_live, local_processed and local_live_last_luid params.
265 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
266 Formatting fixes.
267 (regstat_compute_ri): Adjust for above. Don't set
268 REG_LIVE_LENGTH.
269 (dump_reg_info): Don't print live length.
270 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
271 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
272 Localize loop_depth var.
273
274 2016-04-30 Alan Modra <amodra@gmail.com>
275
276 * ira.c (enum valid_equiv): New.
277 (validate_equiv_mem): Return enum.
278 (update_equiv_mem): Create replacement in more cases.
279 (add_store_equivs): Update validate_equiv_mem call.
280
281 2016-04-30 Alan Modra <amodra@gmail.com>
282
283 * ira.c (combine_and_move_insns): Rather than scanning insns,
284 use DF infrastucture to find use and def insns.
285
286 2016-04-30 Alan Modra <amodra@gmail.com>
287
288 ira.c (combine_and_move_insns): Move invariant conditions..
289 (ira.c): ..to here. Call combine_and_move_insns before
290 add_store_equivs. Call grow_reg_equivs later. Allocate
291 req_equiv later using max_reg_num() rather than global max_regno.
292 (contains_replace_regs): Delete.
293 (add_store_equivs): Remove contains_replace_regs test.
294
295 2016-04-30 Alan Modra <amodra@gmail.com>
296
297 * ira.c (struct equiv_mem_data): New.
298 (equiv_mem, equiv_mem_modified): Delete static vars.
299 (validate_equiv_mem_from_store): Use "data" param to communicate..
300 (validate_equiv_mem): ..from here.
301
302 2016-04-30 Alan Modra <amodra@gmail.com>
303
304 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
305 split out from..
306 (update_reg_equivs): ..here. Move allocation and freeing of
307 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
308 end_alias_analysis to..
309 (ira): ..here.
310
311 2016-04-30 Alan Modra <amodra@gmail.com>
312
313 * ira.c (pdx_subregs): Delete.
314 (struct equivalence): Add pdx_subregs field.
315 (set_paradoxical_subreg): Remove pdx_subregs param. Update
316 pdx_subregs access.
317 (update_equiv_regs): Don't create or free pdx_subregs. Update
318 pdx_subregs access.
319
320 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
321
322 * config/rs6000/altivec.h: Change definitions of vec_xl and
323 vec_xst.
324 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
325 (LD_ELEMREV_V2DI): New.
326 (LD_ELEMREV_V4SF): New.
327 (LD_ELEMREV_V4SI): New.
328 (LD_ELEMREV_V8HI): New.
329 (LD_ELEMREV_V16QI): New.
330 (ST_ELEMREV_V2DF): New.
331 (ST_ELEMREV_V2DI): New.
332 (ST_ELEMREV_V4SF): New.
333 (ST_ELEMREV_V4SI): New.
334 (ST_ELEMREV_V8HI): New.
335 (ST_ELEMREV_V16QI): New.
336 (XL): New.
337 (XST): New.
338 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
339 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
340 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
341 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
342 (altivec_expand_builtin): Add handling for
343 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
344 (rs6000_invalid_builtin): Add error-checking for
345 RS6000_BTM_P9_VECTOR.
346 (altivec_init_builtins): Define builtins used to implement vec_xl
347 and vec_xst.
348 (rs6000_builtin_mask_names): Define power9-vector.
349 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
350 (RS6000_BTM_P9_VECTOR): Define.
351 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
352 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
353 (vsx_ld_elemrev_v2df): Likewise.
354 (vsx_ld_elemrev_v4sf): Likewise.
355 (vsx_ld_elemrev_v4si): Likewise.
356 (vsx_ld_elemrev_v8hi): Likewise.
357 (vsx_ld_elemrev_v16qi): Likewise.
358 (vsx_st_elemrev_v2df): Likewise.
359 (vsx_st_elemrev_v2di): Likewise.
360 (vsx_st_elemrev_v4sf): Likewise.
361 (vsx_st_elemrev_v4si): Likewise.
362 (vsx_st_elemrev_v8hi): Likewise.
363 (vsx_st_elemrev_v16qi): Likewise.
364 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
365 grammar.
366
367 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
368
369 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
370 out into ...
371 (simplify_control_stmt_condition_1): ... here. Recurse into
372 BIT_AND_EXPRs and BIT_IOR_EXPRs.
373
374 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
375
376 PR target/69810
377 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
378 (zero_extendqi<mode>2_dot): Revert earlier conversion from
379 define_insn_and_split to define_insn.
380 (zero_extendqi<mode>2_dot2): Same.
381 (extendqi<mode>2_dot): Same.
382 (extendqi<mode>2_dot2): Same.
383
384 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
385
386 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
387 (probe_stack): New expander.
388 (probe_stack_<mode>): New insn pattern.
389
390 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
391
392 * config/i386/i386.md
393 (operations with memory inputs setting flags peephole2):
394 Remove uneeded REG_P checks. Cleanup pattern generation.
395
396 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
397
398 * tree-vect-loop.c (vect_transform_loop): Fix
399 nb_iterations_upper_bound computation for vectorized loop.
400
401 2016-04-29 Marek Polacek <polacek@redhat.com>
402 Jakub Jelinek <jakub@redhat.com>
403
404 PR sanitizer/70342
405 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
406 TARGET_EXPR_SLOT as a base.
407
408 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
409
410 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
411 with 'rCm2' constraints to limit possible immediate size.
412 (*load_zeroextendqisi_update): Likewise.
413 (*load_signextendqisi_update): Likewise.
414 (*loadhi_update): Likewise.
415 (*load_zeroextendhisi_update): Likewise.
416 (*load_signextendhisi_update): Likewise.
417 (*loadsi_update): Likewise.
418 (*loadsf_update): Likewise.
419
420 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
421
422 * config/i386/predicates.md (constm1_operand): Fix comparison.
423
424 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
425
426 * testsuite/gcc.target/arc/ieee_eq.c: New test.
427
428 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
429
430 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
431 remaining SH5 related settings.
432 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
433 shmedia_prepare_call_address): Delete.
434 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
435 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
436 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
437 UNSUPPORTED_SH2A): Remove m5 checks.
438 (sh_divide_strategy_e): Remove SH5 division strategies.
439 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
440 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
441
442 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
443
444 * config/s390/s390.c (s390_rtx_costs): Update documentation.
445
446 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
447
448 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
449 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
450 Change lder to ldr.
451 * config/s390/vector.md ("mov<mode>"): Likewise.
452
453 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
454
455 * config/s390/constraints.md ("U", "W"): Invoke
456 s390_mem_constraint with "ZR" and "ZT".
457 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
458 addresses when using LRA. Accept also short displacements for S
459 and T constraints. Do not check for long displacement target for
460 S and T constraints.
461 (s390_mem_constraint): Remove handling of U and W constraints.
462 * config/s390/s390.md (various patterns): Remove the short
463 displacement constraints (Q and R) if a long displacement
464 constraint is present. Add longdisp as required CPU capability.
465 * config/s390/vector.md: Likewise.
466 * config/s390/vx-builtins.md: Likewise.
467
468 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
469
470 PR target/60040
471 * reload1.c (reload): Call finish_spills before
472 restarting reload loop. Skip select_reload_regs
473 if update_eliminables_and_spill returns true.
474
475 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
476
477 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
478 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
479 (umulhisi3_imm): Update predicates and constraint letters.
480 (umulhisi3_reg): Declare instruction as commutative.
481 * config/arc/constraints.md (J12, J16): New constraints.
482 * config/arc/predicates.md (short_unsigned_const_operand): New
483 predicate.
484 (arc_short_operand): Likewise.
485 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
486
487 2016-04-29 Richard Biener <rguenther@suse.de>
488
489 PR tree-optimization/13962
490 PR tree-optimization/65686
491 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
492 * tree-ssa-alias.c (ptrs_compare_unequal): New function
493 using PTA to compare pointers.
494 * match.pd: Add pattern for pointer equality compare simplification
495 using ptrs_compare_unequal.
496
497 2016-04-29 Richard Biener <rguenther@suse.de>
498
499 * stor-layout.c (layout_type): Do not build a pointer-to-element
500 type for arrays.
501
502 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
503
504 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
505 Use SWI mode iterator. Use general_reg_operand predicate.
506 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
507 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
508 predicates.
509
510 2016-04-29 Jakub Jelinek <jakub@redhat.com>
511
512 PR middle-end/70843
513 * fold-const.c (operand_equal_p): Don't verify hash value equality
514 if arg0 == arg1.
515 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
516 and OMP_CLAUSE.
517
518 2016-04-28 Jakub Jelinek <jakub@redhat.com>
519
520 PR target/70858
521 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
522 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
523 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
524 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
525 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
526
527 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
528
529 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
530 to info. Don't initialize separate fields to 0. Clean up
531 formatting a bit.
532
533 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
534
535 * config/i386/i386.md (peephole2s for operations with memory inputs):
536 Use SWI mode iterator.
537 (peephole2s for operations with memory outputs): Ditto.
538 Do not check for stack checking probe.
539
540 (probe_stack): Remove expander.
541
542 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
543 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
546 operands as 32-bits.
547
548 2016-04-28 Jason Merrill <jason@redhat.com>
549
550 * gdbinit.in: Skip line-map.h.
551
552 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
553 Andrew Burgess <andrew.burgess@embecosm.com>
554
555 * config/arc/arc.c (arc_conditional_register_usage): Take
556 TARGET_RRQ_CLASS into account.
557 (arc_print_operand): Support printing 'p' and 's' operands.
558 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
559 as 0.
560 (TARGET_RRQ_CLASS): Define.
561 (IS_POWEROF2_OR_0_P): Define.
562 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
563 alternatives.
564 (*tst_movb): New define_insn.
565 (*tst): Avoid recognition if it could prevent '*tst_movb'
566 combination; replace c/CnL with c/Chs alternative.
567 (*tst_bitfield_tst): New define_insn.
568 (*tst_bitfield_asr): New define_insn.
569 (*tst_bitfield): New define_insn.
570 (andsi3_i): Add Rrq variant.
571 (extzv): New define_expand.
572 (insv): New define_expand.
573 (*insv_i): New define_insn.
574 (*movb): New define_insn.
575 (*movb_signed): New define_insn.
576 (*movb_high): New define_insn.
577 (*movb_high_signed): New define_insn.
578 (*movb_high_signed + 1): New define_split pattern.
579 (*mrgb): New define_insn.
580 (*mrgb + 1): New define_peephole2 pattern.
581 (*mrgb + 2): New define_peephole2 pattern.
582 * config/arc/arc.opt (mbitops): New option for nps400, uses
583 TARGET_NPS_BITOPS_DEFAULT.
584 * config/arc/constraints.md (q): Make register class conditional.
585 (Rrq): New register constraint.
586 (Chs): New constraint.
587 (Clo): New constraint.
588 (Chi): New constraint.
589 (Cbf): New constraint.
590 (Cbn): New constraint.
591 (C18): New constraint.
592 (Cbi): New constraint.
593
594 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
595
596 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
597 dst->popcount.
598 (bitmap_intersection_of_preds): Ditto.
599 (bitmap_union_of_succs): Ditto.
600 (bitmap_union_of_preds): Ditto.
601 * sbitmap.c (do_popcount): Delete.
602 (BITMAP_DEBUGGING): Delete.
603 (sbitmap_verify_popcount): Delete.
604 (sbitmap_alloc): Don't initialize the popcount field.
605 (sbitmap_alloc_with_popcount): Delete.
606 (sbitmap_resize): Don't resize the popcount array.
607 (sbitmap_vector_alloc): Don't initialize the popcount field.
608 (bitmap_copy): Don't copy the popcount array.
609 (bitmap_clear): Don't clear the popcount array.
610 (bitmap_clear): Delete the popcount array handling.
611 (bitmap_ior_and_compl): Delete the popcount assert.
612 (bitmap_not): Ditto.
613 (bitmap_and_compl): Ditto.
614 (bitmap_and): Delete the popcount array handling.
615 (bitmap_xor): Ditto.
616 (bitmap_ior): Ditto.
617 (bitmap_or_and): Delete the popcount assert.
618 (bitmap_and_or): Ditto.
619 (popcount_table): Delete.
620 (sbitmap_elt_popcount): Delete.
621 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
622 (bitmap_set_bit): Delete the popcount assert.
623 (bitmap_clear_bit): Ditto.
624 (sbitmap_free): Don't free the popcount array.
625 (sbitmap_alloc_with_popcount): Delete declaration.
626 (sbitmap_popcount): Ditto.
627
628 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
629 Andrew Burgess <andrew.burgess@embecosm.com>
630
631 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
632 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
633 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
634 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
635 * config/arc/arc.opt (mcmem): New option.
636 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
637 supply length for r/m alternative.
638 (*extendqisi2_ac): Likewise.
639 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
640 r/Uex alternative.
641 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
642 (movhi_insn): Likewise.
643 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
644 (*zero_extendqihi2_i): Add r/Ucm alternative.
645 (*zero_extendqisi2_ac): Likewise.
646 (*zero_extendhisi2_i): Likewise.
647 * config/arc/constraints.md (Uex): New memory constraint.
648 (Ucm): New define_constraint.
649 * config/arc/predicates.md (long_immediate_loadstore_operand):
650 Return 0 for MEM with cmem_address address.
651 (cmem_address_0): New predicates.
652 (cmem_address_1): Likewise.
653 (cmem_address_2): Likewise.
654 (cmem_address): Likewise.
655
656 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
657
658 * config/rs6000/rs6000.c (machine_function): Rename
659 insn_chain_scanned_p to spe_insn_chain_scanned_p.
660 (rs6000_stack_info): Adjust.
661
662 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
663 Andrew Burgess <andrew.burgess@embecosm.com>
664
665 * config/arc/constraints.md (Usd): Convert to define_constraint.
666 (Us<): Likewise.
667 (Us>): Likewise.
668
669 2016-04-28 Jakub Jelinek <jakub@redhat.com>
670
671 PR target/70821
672 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
673 Add new peephole2 where the first insn is *mov<mode>_or instead of
674 *mov<mode>_internal.
675
676 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
677
678 * tracer.c (bb_seen): Make static.
679
680 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
681
682 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
683 support, setup defaults.
684 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
685 * config/arc/arc.c (arc_init): Add NPS400 support.
686 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
687 (TARGET_ARC700): NPS400 is also an ARC700.
688 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
689
690 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
691
692 PR target/70668
693 * config/nds32/nds32.md (casesi): Don't access the operands array
694 out of bounds.
695
696 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
697
698 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
699 (or $-1,reg peephole2): Ditto.
700 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
701
702 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
703
704 * doc/extend.texi (Common Function Attributes) [optimize]:
705 Discourage use of the optimize attribute.
706
707 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
708
709 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
710 special case builtin.
711 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
712 ALTIVEC_BUILTIN_VEC_ADDE.
713 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
714 support for ALTIVEC_BUILTIN_VEC_ADDE.
715 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
716 for __builtin_vec_adde.
717
718 2016-04-28 Jakub Jelinek <jakub@redhat.com>
719
720 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
721 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
722
723 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
724
725 PR testsuite/70595
726 * doc/sourcebuild.texi (Effective-Target Keywords, Other
727 attributes): Document cilkplus_runtime.
728
729 2016-04-28 Martin Jambor <mjambor@suse.cz>
730
731 * tree-cfg.c (verify_expr): Verify that local declarations belong to
732 this function. Call verify_expr on MEM_REFs and bases of other
733 handled_components.
734
735 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
736
737 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
738 for WORD_REGISTER_OPERATIONS to runtime check.
739
740 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
741
742 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
743
744 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
745
746 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
747 big-endian compilation.
748 * config/arc/arc.md (addf3): Likewise.
749 (subdf3): Likewise.
750 (muldf3): Likewise.
751
752 2016-04-28 Richard Biener <rguenther@suse.de>
753
754 PR tree-optimization/70840
755 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
756 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
757 Mark x * pow(x,c) -> pow(x,c+1) commutative.
758 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
759
760 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
761
762 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
763 and explain why in a comment.
764
765 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
766
767 * config/arc/arc.md (cpu_facility): Add fpx variant.
768 (subdf3): Prohibit use reverse sub when assist operations option
769 is enabled.
770 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
771 instructions only when FPX is enabled.
772 * testsuite/gcc.target/arc/trsub.c: New test.
773
774 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
775
776 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
777 mult_operator when calculating "type" attribute.
778 (*fop_<mode>_1_i387): Ditto.
779 (*fop_xf_1_i387): Ditto.
780 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
781 Use std::swap to swap operands. Use RTL expressions to generate
782 converted pattern.
783
784 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
785 Joern Rennecke <joern.rennecke@embecosm.com>
786
787 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
788 declaration.
789 (emit_pic_move): Remove.
790 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
791 * config/arc/arc.c (emit_pic_move): Removed.
792 (TARGET_HAVE_TLS): Define.
793 (arc_conditional_register_usage): Test for arc_tp_regno.
794 (arc_print_operand, arc_print_operand_address): Handle TLS
795 unspecs.
796 (arc_needs_pcl_p): New function.
797 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
798 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
799 (arc_raw_symbolic_reference_mentioned_p): Likewise.
800 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
801 (arc_legitimize_tls_address): Likewise.
802 (DTPOFF_ZERO_SYM): Define.
803 (arc_legitimize_pic_address): Make it static, handle TLS cases.
804 (arc_output_pic_addr_const): Print TLS unspecs.
805 (prepare_pic_move): New function, replaces emit_pic_move.
806 (arc_legitimate_constant_p): Handle TLS unspecs.
807 (arc_legitimate_address_p): Likewise.
808 (arc_rewrite_small_data_p): Use assert for TLS constants.
809 (prepare_move_operands): Use prepare_pic_move.
810 (arc_legitimize_address): Legitimize tls addresses.
811 (arc_epilogue_uses): Check for arc_tp_regno.
812 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
813 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
814 Define.
815 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
816 Likewise.
817 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
818 %(arc_tls_extra_start_spec).
819 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
820 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
821 (EH_USES): Define.
822 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
823 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
824 (UNSPEC_TLS_OFF): Add.
825 (R10_REG): Define.
826 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
827 (get_thread_pointersi): New patterns.
828 * config/arc/arc.opt (mtp-regno): New option.
829 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
830 (move_dest_operand): Likewise.
831 * configure: Regenerate.
832 * configure.ac: Add arc*-*-* case to test for tls.
833 * doc/invoke.texi (ARC options): Document mtp-regno.
834
835 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
836
837 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
838 the new ARC HS SIMD instructions.
839 (arc_preferred_simd_mode): New function.
840 (arc_autovectorize_vector_sizes): Likewise.
841 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
842 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
843 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
844 (arc_init_builtins): Add new SIMD builtin types.
845 (arc_split_move): Handle 64 bit vector moves.
846 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
847 (TARGET_PLUS_QMACW): Define.
848 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
849 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
850 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
851 (VSUBADD4H): New builtins.
852 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
853 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
854
855 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
856 Matthias Klose <doko@debian.org>
857
858 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
859
860 2016-04-28 Richard Biener <rguenther@suse.de>
861
862 PR middle-end/70777
863 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
864 canonicalization.
865
866 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
867
868 * common/config/sh/sh-common.c: Remove SH5 support.
869 * config/sh/constraints.md: Likewise.
870 * config/sh/config/sh/elf.h: Likewise.
871 * config/sh/linux.h: Likewise.
872 * config/sh/netbsd-elf.h: Likewise.
873 * config/sh/predicates.md: Likewise.
874 * config/sh/sh-c.c: Likewise.
875 * config/sh/sh-protos.h: Likewise.
876 * config/sh/sh.c: Likewise.
877 * config/sh/sh.h: Likewise.
878 * config/sh/sh.md: Likewise.
879 * config/sh/sh.opt: Likewise.
880 * config/sh/sync.md: Likewise.
881 * config/sh/sh64.h: Delete.
882 * config/sh/shmedia.h: Likewise.
883 * config/sh/shmedia.md: Likewise.
884 * config/sh/sshmedia.h: Likewise.
885 * config/sh/t-netbsd-sh5-64: Likewise.
886 * config/sh/t-sh64: Likewise.
887 * config/sh/ushmedia.h: Likewise.
888
889 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
890
891 * config/i386/i386.md (sign_extend to memory peephole2s): Use
892 general_reg_operand instead of register_operand predicate.
893
894 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
895
896 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
897
898 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
899
900 * match.pd (A - B > A, A + B < A): New transformations.
901
902 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
903
904 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
905 which defaults to true. Emit an outer pair of parentheses only if
906 EMIT_PARENS. When continuing a chain of && or || (or & or |),
907 don't emit parentheses for the right-hand operand.
908
909 2016-04-27 Jeff Law <law@redhat.com>
910
911 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
912
913 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
914
915 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
916 (altivec_lvx_<mode>_internal): Document.
917 (altivec_lvx_<mode>_2op): New define_insn.
918 (altivec_lvx_<mode>_1op): Likewise.
919 (altivec_lvx_<mode>_2op_si): Likewise.
920 (altivec_lvx_<mode>_1op_si): Likewise.
921 (altivec_stvx_<mode>): Remove.
922 (altivec_stvx_<mode>_internal): Document.
923 (altivec_stvx_<mode>_2op): New define_insn.
924 (altivec_stvx_<mode>_1op): Likewise.
925 (altivec_stvx_<mode>_2op_si): Likewise.
926 (altivec_stvx_<mode>_1op_si): Likewise.
927 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
928 Expand vec_ld and vec_st during parsing.
929 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
930 changes.
931 (altivec_expand_stvx_be): Likewise.
932 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
933 address-masking behavior in RTL.
934 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
935 address-masking behavior in RTL.
936 (altivec_expand_builtin): Change builtin code arguments for calls
937 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
938 (insn_is_swappable_p): Avoid incorrect swap optimization in the
939 presence of lvx/stvx patterns.
940 (alignment_with_canonical_addr): New function.
941 (alignment_mask): Likewise.
942 (find_alignment_op): Likewise.
943 (recombine_lvx_pattern): Likewise.
944 (recombine_stvx_pattern): Likewise.
945 (recombine_lvx_stvx_patterns): Likewise.
946 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
947 stvx patterns from expand.
948 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
949 expansions.
950 (vector_altivec_store_<mode>): Likewise.
951
952 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
953
954 * config/aarch64/aarch64.md
955 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
956 remove the "fp" attributes.
957 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
958 add the "simd" attributes.
959 (*movdf_aarch64): Likewise.
960 (*movtf_aarch64): Remove the "fp" attributes.
961 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
962 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
963
964 2016-04-27 David Malcolm <dmalcolm@redhat.com>
965
966 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
967 rtx to rtx_code_label *.
968 * rtl.h (maybe_set_first_label_num): Likewise.
969
970 2016-04-27 David Malcolm <dmalcolm@redhat.com>
971
972 * df-core.c (df_add_problem): Make the problem param be const.
973 (df_remove_problem): Make local "problem" be const.
974 * df-problems.c (problem_RD): Make const.
975 (problem_LR): Likewise.
976 (problem_LIVE): Likewise.
977 (problem_MIR): Likewise.
978 (problem_CHAIN): Likewise.
979 (problem_WORD_LR): Likewise.
980 (problem_NOTE): Likewise.
981 (problem_MD): Likewise.
982 * df-scan.c (problem_SCAN): Likewise.
983 * df.h (struct df_problem): Make field "dependent_problem" be
984 const.
985 (struct dataflow): Likewise for field "problem".
986 (df_add_problem): Make param const.
987
988 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
989
990 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
991 inter-unit moves to/from vector registers are enabled. Do not disable
992 for TARGET_MMX.
993
994 2016-04-27 David Malcolm <dmalcolm@redhat.com>
995
996 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
997 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
998 #define to...
999 (enum df_problem_id): ...this new enum.
1000 (struct df_problem): Convert field "id" from "int" to
1001 enum df_problem_id.
1002
1003 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1004
1005 * rtl.def: Update comment for "things in the instruction chain" to
1006 reflect the removal of the leading "i" field for INSN_UID in
1007 r210360. Fix bogus apostrophe.
1008
1009 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
1010
1011 * config/i386/i386.md
1012 (lea arith with mem operand + setcc peephole2): Set operator mode.
1013
1014 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
1015
1016 PR target/70155
1017 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
1018 (dimode_scalar_to_vector_candidate_p): This.
1019 (timode_scalar_to_vector_candidate_p): New function.
1020 (scalar_to_vector_candidate_p): Likewise.
1021 (timode_check_non_convertible_regs): Likewise.
1022 (timode_remove_non_convertible_regs): Likewise.
1023 (remove_non_convertible_regs): Likewise.
1024 (remove_non_convertible_regs): Renamed to ...
1025 (dimode_remove_non_convertible_regs): This.
1026 (scalar_chain::~scalar_chain): Make it virtual.
1027 (scalar_chain::compute_convert_gain): Make it pure virtual.
1028 (scalar_chain::mark_dual_mode_def): Likewise.
1029 (scalar_chain::convert_insn): Likewise.
1030 (scalar_chain::convert_registers): Likewise.
1031 (scalar_chain::add_to_queue): Make it protected.
1032 (scalar_chain::emit_conversion_insns): Likewise.
1033 (scalar_chain::replace_with_subreg): Likewise.
1034 (scalar_chain::replace_with_subreg_in_insn): Likewise.
1035 (scalar_chain::convert_op): Likewise.
1036 (scalar_chain::convert_reg): Likewise.
1037 (scalar_chain::make_vector_copies): Likewise.
1038 (scalar_chain::convert_registers): New pure virtual function.
1039 (class dimode_scalar_chain): New class.
1040 (class timode_scalar_chain): Likewise.
1041 (scalar_chain::mark_dual_mode_def): Renamed to ...
1042 (dimode_scalar_chain::mark_dual_mode_def): This.
1043 (timode_scalar_chain::mark_dual_mode_def): New function.
1044 (timode_scalar_chain::convert_insn): Likewise.
1045 (dimode_scalar_chain::convert_registers): Likewise.
1046 (scalar_chain::compute_convert_gain): Renamed to ...
1047 (dimode_scalar_chain::compute_convert_gain): This.
1048 (scalar_chain::replace_with_subreg): Renamed to ...
1049 (dimode_scalar_chain::replace_with_subreg): This.
1050 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
1051 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
1052 (scalar_chain::make_vector_copies): Renamed to ...
1053 (dimode_scalar_chain::make_vector_copies): This.
1054 (scalar_chain::convert_reg): Renamed to ...
1055 (dimode_scalar_chain::convert_reg ): This.
1056 (scalar_chain::convert_op): Renamed to ...
1057 (dimode_scalar_chain::convert_op): This.
1058 (scalar_chain::convert_insn): Renamed to ...
1059 (dimode_scalar_chain::convert_insn): This.
1060 (scalar_chain::convert): Call convert_registers.
1061 (convert_scalars_to_vector): Change to scalar_chain pointer to
1062 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
1063 in 32-bit mode. Delete scalar_chain pointer. Call
1064 free_dominance_info in 64-bit mode.
1065 (pass_stv::gate): Remove TARGET_64BIT check.
1066 (ix86_option_override): Put the 64-bit STV pass before the CSE
1067 pass.
1068
1069 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
1070
1071 * dwarf2out.h (struct dw_loc_descr_node): Remove the
1072 dw_loc_frame_offset field.
1073 * dwarf2out.c (new_loc_descr): Likewise.
1074 (resolve_args_picking_1): Turn the VISITED hash set into a
1075 FRAME_OFFSET hash map. Use it to associate a frame offset to
1076 visited nodes. Remove uses of the CHECKING_P macro.
1077 (resolve_args_picking): Update call to resolve_args_picking_1.
1078
1079 2016-04-27 Martin Liska <mliska@suse.cz>
1080
1081 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
1082 (free_loop_data): Release vuses of groups.
1083
1084 2016-04-27 Bin Cheng <bin.cheng@arm.com>
1085
1086 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
1087 instead of redundant use_id and boolean have_use_for.
1088 (struct iv_use): Change sub_id into group_id. Remove field next.
1089 Move fields: related_cands, n_map_members, cost_map and selected
1090 to ...
1091 (struct iv_group): ... here. New structure.
1092 (struct iv_common_cand): Use structure declaration directly.
1093 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
1094 (MAX_CONSIDERED_USES): Rename macro to ...
1095 (MAX_CONSIDERED_GROUPS): ... here.
1096 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
1097 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
1098 (dump_uses): Rename to ...
1099 (dump_groups): ... here. Update all uses.
1100 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
1101 (find_induction_variables): Refactor format of dump information.
1102 (record_sub_use): Delete.
1103 (record_use): Update all uses.
1104 (record_group): New function.
1105 (record_group_use, find_interesting_uses_op): Call above functions.
1106 Update all uses.
1107 (find_interesting_uses_cond): Ditto.
1108 (group_compare_offset): New function.
1109 (split_all_small_groups): Rename to ...
1110 (split_small_address_groups_p): ... here. Update all uses.
1111 (split_address_groups): Update all uses.
1112 (find_interesting_uses): Refactor format of dump information.
1113 (add_candidate_1): Update all uses. Remove redundant check on iv,
1114 base and step.
1115 (add_candidate, record_common_cand): Remove redundant assert.
1116 (add_iv_candidate_for_biv): Update use.
1117 (add_iv_candidate_derived_from_uses): Update all uses.
1118 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
1119 (alloc_use_cost_map): Ditto.
1120 (set_use_iv_cost, get_use_iv_cost): Rename to ...
1121 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
1122 (determine_use_iv_cost_generic): Ditto.
1123 (determine_group_iv_cost_generic): Ditto.
1124 (determine_use_iv_cost_address): Ditto.
1125 (determine_group_iv_cost_address): Ditto.
1126 (determine_use_iv_cost_condition): Ditto.
1127 (determine_group_iv_cost_cond): Ditto.
1128 (determine_use_iv_cost): Ditto.
1129 (determine_group_iv_cost): Ditto.
1130 (set_autoinc_for_original_candidates): Update all uses.
1131 (find_iv_candidates): Update all uses. Refactor dump information.
1132 (determine_use_iv_costs): Ditto.
1133 (determine_iv_costs): Ditto.
1134 (iv_ca_cand_for_use): Rename to ...
1135 (iv_ca_cand_for_group): ... here. Update all uses.
1136 (iv_ca_add_use, iv_ca_add_group): Ditto.
1137 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
1138 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
1139 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
1140 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
1141 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
1142 (create_new_iv, adjust_iv_update_pos): Ditto.
1143 (rewrite_use_address): Delete.
1144 (rewrite_use_address_1): Rename to ...
1145 (rewrite_use_address): ... here.
1146 (rewrite_use_compare): Update all uses.
1147 (rewrite_use): Delete.
1148 (rewrite_uses): Rename to ...
1149 (rewrite_groups): ... here. Update all uses.
1150 (remove_unused_ivs, free_loop_data): Update all uses.
1151 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
1152
1153 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1154
1155 * rtlanal.c (nonzero_bits1): Convert preprocessor check
1156 for WORD_REGISTER_OPERATIONS to runtime check.
1157
1158 2016-04-27 Richard Biener <rguenther@suse.de>
1159
1160 PR ipa/70760
1161 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
1162 aggregate_value_p to determine if a function result is
1163 returned by reference.
1164 (ipa_pta_execute): Functions having their address taken are
1165 not automatically nonlocal.
1166
1167 2016-04-27 Jakub Jelinek <jakub@redhat.com>
1168
1169 PR sanitizer/70683
1170 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
1171 * fold-const.c (operand_equal_p): If flag_checking and
1172 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
1173 and if it returns non-zero, assert iterative_hash_expr on both
1174 args is the same.
1175
1176 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1177
1178 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
1179
1180 2016-04-27 Nick Clifton <nickc@redhat.com>
1181
1182 PR middle-end/49889
1183 * varasm.c (merge_weak): Generate an error if an attempt is made
1184 to convert a non-weak static function into a weak, public function.
1185
1186 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1187
1188 * params.def (MAX_PARTITION_SIZE): New param.
1189 * doc/invoke.texi: Document lto-max-partition.
1190
1191 2016-04-27 Richard Biener <rguenther@suse.de>
1192
1193 PR ipa/70785
1194 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
1195 function cummulating used_from_other_partition, externally_visible
1196 and force_output from aliases.
1197 (refered_from_nonlocal_var): Likewise.
1198 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
1199 node flags properly.
1200
1201 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1202
1203 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
1204 (-Wmemset-elt-size): New item.
1205
1206 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
1207
1208 PR ada/70759
1209 * stor-layout.h (internal_reference_types): Delete.
1210 * stor-layout.c (reference_types_internal): Likewise.
1211 (internal_reference_types): Likewise.
1212 (layout_type) <REFERENCE_TYPE>: Adjust.
1213
1214 2016-04-27 Jakub Jelinek <jakub@redhat.com>
1215
1216 PR sanitizer/70683
1217 * tree.h (inchash::add_expr): Add FLAGS argument.
1218 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
1219 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
1220 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
1221 Formatting fix. Adjust recursive calls. For tcc_comparison,
1222 if swap_tree_comparison (code) is smaller than code, hash that
1223 and arguments in the other order. Hash CONVERT_EXPR the same
1224 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
1225 of ADDR_EXPR of decl as the decl itself. Add or remove
1226 OEP_ADDRESS_OF from recursive flags as needed. For
1227 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
1228 operands commutatively and only the third one normally.
1229 For internal CALL_EXPR hash in CALL_EXPR_IFN.
1230
1231 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
1232
1233 * config/rtems.h (LIB_SPEC): Add -latomic.
1234
1235 2016-04-27 Joel Sherrill <joel@rtems.org>
1236
1237 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
1238 xilink.ld and flags not relevant to RTEMS.
1239
1240 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1241
1242 * toplev.c (backend_init_target): Avoid calling init_reload when using
1243 LRA.
1244
1245 2016-04-26 Jakub Jelinek <jakub@redhat.com>
1246
1247 * reorg.c (try_merge_delay_insns): Declare i and j inside the
1248 for loops rather than one for the whole function.
1249
1250 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
1251
1252 * match.pd (X + CST CMP X): New transformation.
1253
1254 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
1255
1256 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
1257 * fold-const.c (fold_binary_loc): Remove 2 transformations
1258 superseded by match.pd.
1259 * match.pd (x+x -> x*2): Generalize to integers.
1260
1261 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
1262
1263 * config/i386/i386.md (operation on memory peephole): Duplicate an
1264 existing peephole and adapt it to match lea rather than an operation
1265 that clobbers CC.
1266
1267 PR rtl-optimization/57193
1268 * opts.c (default_options_table): Add OPT_frename_registers at -O2
1269 and above.
1270 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
1271
1272 2016-04-26 Bin Cheng <bin.cheng@arm.com>
1273
1274 * tree-if-conv.c (any_pred_load_store): New static variable.
1275 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
1276 any_pred_load_store instead of and_mask_load_store.
1277 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
1278 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
1279 (combine_blocks, tree_if_conversion): Ditto.
1280
1281 2016-04-26 Bin Cheng <bin.cheng@arm.com>
1282
1283 PR tree-optimization/70771
1284 PR tree-optimization/70775
1285 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
1286 virtual PHI nodes. Delete parameter.
1287 (if_convertible_loop_p_1): Delete argument to above function.
1288 (predicate_all_scalar_phis): Delete code handling single-argument
1289 PHIs.
1290 (tree_if_conversion): Mark and update virtual SSA.
1291
1292 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1293
1294 PR target/61821
1295 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
1296 (x86_elf_aligned_common): Rename to ...
1297 (x86_elf_aligned_decl_common): ... this.
1298 Add decl arg. Switch to .lbss for largecomm object. Use
1299 LARGECOMM_SECTION_ASM_OP.
1300 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
1301 renaming.
1302 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
1303 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
1304 Pass new decl arg.
1305 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1306 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
1307
1308 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1309
1310 PR target/59407
1311 * config/i386/i386.c (SECTION_LARGE): Define.
1312 (x86_64_elf_select_section): Set it for large data/bss sections.
1313 Only clear SECTION_WRITE for .lrodata.
1314 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
1315 data/bss sections.
1316 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
1317 * varasm.c (default_elf_asm_named_section): Grow flagchars.
1318 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
1319 SECTION_MACH_DEP.
1320 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
1321 * doc/tm.texi: Regenerate.
1322
1323 2016-04-26 Jakub Jelinek <jakub@redhat.com>
1324
1325 PR bootstrap/70704
1326 * configure.ac (--enable-checking): Document extra flag, for
1327 non-release builds default to --enable-checking=yes,extra.
1328 If misc checking and extra checking, define CHECKING_P to 2 instead
1329 of 1.
1330 * common.opt (fchecking=): Add.
1331 * doc/invoke.texi (-fchecking=): Document.
1332 * doc/install.texi: Document --enable-checking changes.
1333 * configure: Regenerated.
1334 * config.in: Regenerated.
1335
1336 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1337
1338 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
1339 attribute instead of which_alternative.
1340 * config/i386/sse.md (*mov<mode>_internal): Ditto.
1341 Use EXT_REX_SSE_REG_P where appropriate.
1342
1343 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1344
1345 * config/i386/predicates.md (const0_operand): Do not match
1346 const_wide_int code.
1347 (const1_operand): Ditto.
1348
1349 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1350
1351 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
1352 for SSE constm1 operands and TARGET_AVX512VL.
1353 (*movti_internal): Ditto.
1354 (*mov<mode>_or): Use constm1_operand predicate.
1355 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
1356 for SSE vector_all_ones operands and TARGET_AVX512VL.
1357 * config/i386/predicates.md (constm1_operand): New predicate.
1358 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
1359 emission of constant -1 load.
1360
1361 2016-04-25 Jason Merrill <jason@redhat.com>
1362
1363 * gdbinit.in: Skip is-a.h.
1364
1365 * attribs.c (register_scoped_attributes): Fix logic.
1366 * attribs.h: Declare register_scoped_attributes.
1367
1368 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1369
1370 * config/rs6000/rs6000-builtin.def: Correct pasto error for
1371 stxvd2x and stxvw4x built-in functions.
1372
1373 2016-04-25 DJ Delorie <dj@redhat.com>
1374
1375 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
1376 (ashrhi3): Likewise.
1377 (lshrhi3): Likewise.
1378
1379 2016-04-25 Richard Biener <rguenther@suse.de>
1380
1381 PR tree-optimization/70780
1382 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
1383 wasn't visited yet.
1384 (compute_antic): Mark blocks with abnormal preds as visited as
1385 they have a final empty antic-in solution already.
1386
1387 2016-04-25 Michael Collison <michael.collison@linaro.org>
1388
1389 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
1390
1391 2016-04-25 Michael Collison <michael.collison@linaro.org>
1392
1393 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
1394 mode is VQI to improve mixed mode vectorization.
1395 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
1396 define_insn to match low half of signed vaddw.
1397 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
1398 define_insn to match high half of signed vaddw.
1399 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
1400 define_insn to match low half of unsigned vaddw.
1401 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
1402 define_insn to match high half of unsigned vaddw.
1403 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
1404 (arm_simd_check_vect_par_cnst_half_p): Likewise.
1405 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
1406 for new function.
1407 (arm_simd_check_vect_par_cnst_half_p): Likewise.
1408 * config/arm/predicates.md (vect_par_constant_high): Support
1409 big endian and simplify by calling
1410 arm_simd_check_vect_par_cnst_half
1411 (vect_par_constant_low): Likewise.
1412
1413 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1414
1415 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
1416 predicate for operand 2.
1417
1418 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
1419 H.J. Lu <hongjiu.lu@intel.com>
1420
1421 * config/i386/i386-protos.h (standard_sse_constant_p): Add
1422 machine_mode argument.
1423 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
1424 constm1_rtx operands. For VOIDmode constants, get mode from
1425 pred_mode. Check mode size if the mode is supported by ABI.
1426 (standard_sse_constant_opcode): Do not use standard_constant_p.
1427 Strictly check ABI support for all-ones operands.
1428 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
1429 immediates. Update calls to standard_sse_constant_p.
1430 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
1431 (ix86_rtx_costs): Ditto.
1432 * config/i386/i386.md (*movxi_internal_avx512f): Use
1433 nonimmediate_or_sse_const_operand instead of vector_move_operand.
1434 Use (v,BC) alternative instead of (v,C). Use register_operand
1435 checks instead of MEM_P.
1436 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
1437 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
1438 isa attribute. Use register_operand checks instead of MEM_P.
1439 (*movti_internal): Use nonimmediate_or_sse_const_operand for
1440 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
1441 alternative and corresponding sse2 isa attribute.
1442 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
1443 to standard_sse_constant_p.
1444 (FP constant splitters): Ditto.
1445 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
1446 (C): Ditto.
1447 * config/i386/predicates.md (constm1_operand): Remove.
1448 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
1449 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
1450 vector_all_ones_operand instead of constm1_operand.
1451
1452 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1453
1454 * print-rtl.c (print_rtx_insn_vec): New function.
1455 * print-rtl.h: New prototype.
1456 * store-motion.c (struct st_expr): Make avail_stores a vector.
1457 (st_expr_entry): Adjust.
1458 (free_st_expr_entry): Likewise.
1459 (print_store_motion_mems): Likewise.
1460 (find_moveable_store): Likewise.
1461 (compute_store_table): Likewise.
1462 (delete_store): Likewise.
1463 (build_store_vectors): Likewise.
1464
1465 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1466
1467 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
1468
1469 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1470
1471 * vec.h (vec_safe_contains): New function.
1472 (vec::contains): Likewise.
1473 (vec::begin): Likewise.
1474 (vec::end): Likewise.
1475
1476 2016-04-23 Jakub Jelinek <jakub@redhat.com>
1477
1478 PR sanitizer/70712
1479 * cfgexpand.c (expand_stack_vars): Fix typo.
1480
1481 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1482
1483 * system.h (list, map, set, vector): Include conditionally.
1484 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
1485 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
1486 * ipa-icf.c (INCLUDE_LIST): Define.
1487 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
1488 * config/sh/sh.c (INCLUDE_VECTOR): Define.
1489 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
1490 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
1491 * cp/logic.cc (INCLUDE_LIST): Define.
1492 * fortran/trans-common.c (INCLUDE_MAP): Define.
1493
1494 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1495
1496 * auto-profile.c: Remove <string.h> include.
1497 * ipa-icf-gimple.c: Remove <list> include.
1498 * diagnostic.c: Remove <new> include.
1499 * genmatch.c: Likewise.
1500 * pretty-print.c: Likewise.
1501 * toplev.c: Likewise
1502 * c/c-objc-common.c: Likewise.
1503 * cp/error.c: Likewise.
1504 * fortran/error.c: Likewise.
1505
1506 2016-04-22 Richard Biener <rguenther@suse.de>
1507
1508 * lto-streamer-in.c (input_ssa_names): Do not allocate
1509 GIMPLE_NOP for all SSA names.
1510 * lto-streamer-out.c (output_ssa_names): Do not output
1511 SSA names that should have been released.
1512
1513 2016-04-22 Richard Biener <rguenther@suse.de>
1514
1515 PR tree-optimization/70740
1516 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
1517 VDEF.
1518
1519 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
1520
1521 PR target/70750
1522 * config/i386/predicates.md (call_insn_operand): Replace
1523 sibcall_memory_operand with memory_operand.
1524
1525 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
1526
1527 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
1528 has_single_use() tests.
1529 (register_edge_assert_for_1): Likewise.
1530 (find_assert_locations_1): Check the liveness bitmap instead of
1531 checking has_single_use().
1532
1533 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
1534
1535 PR target/70728
1536 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
1537 Extract AVX-512BW constraint from AVX.
1538
1539 2016-04-21 Richard Biener <rguenther@suse.de>
1540
1541 PR tree-optimization/70725
1542 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
1543 for phi_convertible_by_degenerating_args.
1544 (predicate_all_scalar_phis): Handle single-argument PHIs.
1545
1546 2016-04-21 Richard Biener <rguenther@suse.de>
1547
1548 PR middle-end/70747
1549 * fold-const.c (fold_comparison): Return properly typed
1550 constant boolean.
1551
1552 2016-04-21 Bin Cheng <bin.cheng@arm.com>
1553
1554 PR tree-optimization/70715
1555 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
1556 after expanding BASE using expand_simple_operations.
1557
1558 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
1559
1560 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
1561 New transformations.
1562
1563 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
1564
1565 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
1566
1567 2016-04-20 Jan Hubicka <jh@suse.cz>
1568
1569 * ipa-inline.c (can_inline_edge_p): Pass caller info to
1570 ultiimate_alias_target.
1571 (update_callee_keys): Likewise.
1572 (lookup_recursive_calls): Likewise.
1573 (speculation_useful_p): Likewise.
1574
1575 2016-04-20 Jan Hubicka <jh@suse.cz>
1576
1577 PR ipa/70018
1578 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
1579 (set_nothrow_flag_1): ... this; handle interposition correctly;
1580 recurse on aliases and thunks.
1581 (cgraph_node::set_nothrow_flag): New.
1582 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
1583 functions compiled with non-call exceptions that binds to current
1584 def.
1585 (propagate_nothrow): Be safe WRT interposition.
1586 * cgraph.h (set_nothrow_flag): Update prototype.
1587
1588 2016-04-18 Jan Hubicka <jh@suse.cz>
1589
1590 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1591 max_loop_iterations_int.
1592 (tree_unswitch_outer_loop): Likewise.
1593
1594 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1595
1596 PR tree-optimization/69489
1597 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
1598 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
1599 Revise dump message.
1600 (if_convertible_bb_p): Remove check on edge count of basic block's
1601 predecessors.
1602
1603 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1604
1605 PR tree-optimization/56625
1606 PR tree-optimization/69489
1607 * tree-data-ref.h (DR_INNERMOST): New macro.
1608 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
1609 hashing struct innermost_loop_behavior.
1610 (ref_DR_map): Remove.
1611 (innermost_DR_map): New map.
1612 (baseref_DR_map): Revise comment.
1613 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
1614 to innermost_DR_map accroding to its innermost loop behavior.
1615 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
1616 to its innermost loop behavior.
1617 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
1618 Add initialization for innermost_DR_map. Record memory reference
1619 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
1620 have innermost loop behavior.
1621 (if_convertible_loop_p): Remove release for ref_DR_map. Release
1622 innermost_DR_map.
1623
1624 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
1625
1626 * config/i386/i386.md (*lea<mode>_general_1): Rename from
1627 *lea_general_1. Use explicit SWI12 mode interator.
1628 (*lea<mode>_general_2): Rename from *lea_general_2.
1629 Use explicit SWI12 mode interator.
1630 (*lea<mode>_general_3): Rename from *lea_general_3.
1631 Use explicit SWI12 mode interator.
1632 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
1633 Use explicit SWI12 mode interator.
1634 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
1635 Use explicit SWI48 mode interator.
1636
1637 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1638
1639 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1640 Short-cut unaligned load and store cases. Handle all integer
1641 vector modes.
1642 (ix86_expand_vector_move_misalign): Short-cut unaligned load
1643 and store cases. Call ix86_avx256_split_vector_move_misalign
1644 directly without checking mode class.
1645
1646 2016-04-20 Andrew Pinski <apinski@cavium.com>
1647 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1648
1649 PR target/64971
1650 * config/aarch64/aarch64.md (sibcall): Force call
1651 address to be DImode for ILP32.
1652 (sibcall_value): Likewise.
1653
1654 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1655
1656 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
1657
1658 2016-04-20 Richard Biener <rguenther@suse.de>
1659
1660 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
1661 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
1662 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
1663 (maybe_push_res_to_seq): Adjust.
1664 * gimple-fold.c (maybe_build_generic_op): Likewise.
1665
1666 2016-04-20 Marek Polacek <polacek@redhat.com>
1667
1668 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
1669 rather than true.
1670
1671 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
1672
1673 * config/i386/sse.md (vec_unpacks_lo_hi): Always
1674 use kmovw to support AVX512F target.
1675
1676 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1677
1678 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
1679
1680 2016-04-20 Marek Polacek <polacek@redhat.com>
1681
1682 PR tree-optimization/70725
1683 * tree-if-conv.c (is_false_predicate): New function.
1684 (predicate_mem_writes): Use it.
1685
1686 2016-04-20 Richard Biener <rguenther@suse.de>
1687
1688 PR tree-optimization/70726
1689 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
1690 shift amounts from a pattern stmt operand.
1691
1692 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1693
1694 PR target/70674
1695 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
1696 stack_restore_from_fpr pattern when restoring r15.
1697 (s390_optimize_prologue): Strip away the memory barrier in the
1698 parallel when trying to get rid of restore insns.
1699 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
1700 definition for loading the stack pointer from an FPR. Compared to
1701 the normal move insn this pattern includes a full memory barrier.
1702
1703 2016-04-19 Jakub Jelinek <jakub@redhat.com>
1704
1705 PR middle-end/70680
1706 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
1707 implicitly linear or lastprivate iterator on the outer context.
1708
1709 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
1710
1711 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
1712 alignment check.
1713 * config/i386/i386.md (ssememalign): Removed.
1714 * config/i386/sse.md: Remove ssememalign attribute from patterns.
1715
1716 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
1717
1718 PR target/69201
1719 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
1720 const short * to __builtin_ia32_loaddquhi512_mask.
1721 (_mm512_maskz_loadu_epi16): Likewise.
1722 (_mm512_mask_storeu_epi16): Pass short * to
1723 __builtin_ia32_storedquhi512_mask.
1724 (_mm512_mask_loadu_epi8): Pass const char * to
1725 __builtin_ia32_loaddquqi512_mask.
1726 (_mm512_maskz_loadu_epi8): Likewise.
1727 (_mm512_mask_storeu_epi8): Pass char * to
1728 __builtin_ia32_storedquqi512_mask.
1729 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
1730 const double * to __builtin_ia32_loadupd512_mask.
1731 (_mm512_mask_loadu_pd): Likewise.
1732 (_mm512_maskz_loadu_pd): Likewise.
1733 (_mm512_storeu_pd): Pass double * to
1734 __builtin_ia32_storeupd512_mask.
1735 (_mm512_mask_storeu_pd): Likewise.
1736 (_mm512_loadu_ps): Pass const float * to
1737 __builtin_ia32_loadups512_mask.
1738 (_mm512_mask_loadu_ps): Likewise.
1739 (_mm512_maskz_loadu_ps): Likewise.
1740 (_mm512_storeu_ps): Pass float * to
1741 __builtin_ia32_storeups512_mask.
1742 (_mm512_mask_storeu_ps): Likewise.
1743 (_mm512_mask_loadu_epi64): Pass const long long * to
1744 __builtin_ia32_loaddqudi512_mask.
1745 (_mm512_maskz_loadu_epi64): Likewise.
1746 (_mm512_mask_storeu_epi64): Pass long long *
1747 to __builtin_ia32_storedqudi512_mask.
1748 (_mm512_loadu_si512): Pass const int * to
1749 __builtin_ia32_loaddqusi512_mask.
1750 (_mm512_mask_loadu_epi32): Likewise.
1751 (_mm512_maskz_loadu_epi32): Likewise.
1752 (_mm512_storeu_si512): Pass int * to
1753 __builtin_ia32_storedqusi512_mask.
1754 (_mm512_mask_storeu_epi32): Likewise.
1755 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
1756 char * to __builtin_ia32_storedquqi256_mask.
1757 (_mm_mask_storeu_epi8): Likewise.
1758 (_mm256_mask_loadu_epi16): Pass const short * to
1759 __builtin_ia32_loaddquhi256_mask.
1760 (_mm256_maskz_loadu_epi16): Likewise.
1761 (_mm_mask_loadu_epi16): Pass const short * to
1762 __builtin_ia32_loaddquhi128_mask.
1763 (_mm_maskz_loadu_epi16): Likewise.
1764 (_mm256_mask_loadu_epi8): Pass const char * to
1765 __builtin_ia32_loaddquqi256_mask.
1766 (_mm256_maskz_loadu_epi8): Likewise.
1767 (_mm_mask_loadu_epi8): Pass const char * to
1768 __builtin_ia32_loaddquqi128_mask.
1769 (_mm_maskz_loadu_epi8): Likewise.
1770 (_mm256_mask_storeu_epi16): Pass short * to.
1771 __builtin_ia32_storedquhi256_mask.
1772 (_mm_mask_storeu_epi16): Pass short * to.
1773 __builtin_ia32_storedquhi128_mask.
1774 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
1775 const double * to __builtin_ia32_loadupd256_mask.
1776 (_mm256_maskz_loadu_pd): Likewise.
1777 (_mm_mask_loadu_pd): Pass onst double * to
1778 __builtin_ia32_loadupd128_mask.
1779 (_mm_maskz_loadu_pd): Likewise.
1780 (_mm256_mask_storeu_pd): Pass double * to
1781 __builtin_ia32_storeupd256_mask.
1782 (_mm_mask_storeu_pd): Pass double * to
1783 __builtin_ia32_storeupd128_mask.
1784 (_mm256_mask_loadu_ps): Pass const float * to
1785 __builtin_ia32_loadups256_mask.
1786 (_mm256_maskz_loadu_ps): Likewise.
1787 (_mm_mask_loadu_ps): Pass const float * to
1788 __builtin_ia32_loadups128_mask.
1789 (_mm_maskz_loadu_ps): Likewise.
1790 (_mm256_mask_storeu_ps): Pass float * to
1791 __builtin_ia32_storeups256_mask.
1792 (_mm_mask_storeu_ps): ass float * to
1793 __builtin_ia32_storeups128_mask.
1794 (_mm256_mask_loadu_epi64): Pass const long long * to
1795 __builtin_ia32_loaddqudi256_mask.
1796 (_mm256_maskz_loadu_epi64): Likewise.
1797 (_mm_mask_loadu_epi64): Pass const long long * to
1798 __builtin_ia32_loaddqudi128_mask.
1799 (_mm_maskz_loadu_epi64): Likewise.
1800 (_mm256_mask_storeu_epi64): Pass long long * to
1801 __builtin_ia32_storedqudi256_mask.
1802 (_mm_mask_storeu_epi64): Pass long long * to
1803 __builtin_ia32_storedqudi128_mask.
1804 (_mm256_mask_loadu_epi32): Pass const int * to
1805 __builtin_ia32_loaddqusi256_mask.
1806 (_mm256_maskz_loadu_epi32): Likewise.
1807 (_mm_mask_loadu_epi32): Pass const int * to
1808 __builtin_ia32_loaddqusi128_mask.
1809 (_mm_maskz_loadu_epi32): Likewise.
1810 (_mm256_mask_storeu_epi32): Pass int * to
1811 __builtin_ia32_storedqusi256_mask.
1812 (_mm_mask_storeu_epi32): Pass int * to
1813 __builtin_ia32_storedqusi128_mask.
1814 * config/i386/i386-builtin-types.def (PCSHORT): New.
1815 (PINT64): Likewise.
1816 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
1817 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
1818 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
1819 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
1820 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
1821 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
1822 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
1823 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
1824 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
1825 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
1826 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
1827 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
1828 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
1829 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
1830 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
1831 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
1832 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
1833 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
1834 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
1835 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
1836 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
1837 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
1838 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
1839 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
1840 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
1841 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
1842 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
1843 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
1844 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
1845 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
1846 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
1847 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
1848 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
1849 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
1850 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
1851 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
1852 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
1853 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
1854 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
1855 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
1856 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
1857 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
1858 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
1859 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
1860 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
1861 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
1862 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
1863 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
1864 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
1865 use UNSPEC_STOREU.
1866 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
1867 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
1868 load nor store.
1869 (ix86_expand_vector_move_misalign): Likewise.
1870 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
1871 to scalar function prototype for unaligned load/store builtins.
1872 (ix86_expand_special_args_builtin): Updated.
1873 * config/i386/sse.md (UNSPEC_LOADU): Removed.
1874 (UNSPEC_STOREU): Likewise.
1875 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
1876 (VI_ULOADSTORE_F_AVX512VL): Likewise.
1877 (ssescalarsize): Handle V4TI, V2TI and V1TI.
1878 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1879 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1880 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
1881 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
1882 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
1883 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
1884 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
1885 (<avx512>_storedqu<mode>_mask): Likewise.
1886 (*sse4_2_pcmpestr_unaligned): Likewise.
1887 (*sse4_2_pcmpistr_unaligned): Likewise.
1888 (*mov<mode>_internal): Renamed to ...
1889 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
1890 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
1891 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
1892 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
1893
1894 2016-04-19 Richard Biener <rguenther@suse.de>
1895
1896 PR tree-optimization/70171
1897 * tree-ssa-phiprop.c: Include stor-layout.h.
1898 (phiprop_insert_phi): Handle the aggregate copy case.
1899 (propagate_with_phi): Likewise.
1900
1901 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
1902
1903 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
1904 instead of simplify_gen_subreg (... , 0).
1905 (ix86_delegitimize_address): Ditto.
1906 (ix86_split_divmod): Ditto.
1907 (ix86_split_copysign_const): Ditto.
1908 (ix86_split_copysign_var): Ditto.
1909 (ix86_expand_args_builtin): Ditto.
1910 (ix86_expand_round_builtin): Ditto.
1911 (ix86_expand_special_args_builtin): Ditto.
1912 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
1913 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
1914 (udivmodqi4): Ditto.
1915 (absneg splitters): Ditto.
1916 (*jcc_bt<mode>_1): Ditto.
1917
1918 2016-04-19 Richard Biener <rguenther@suse.de>
1919
1920 PR tree-optimization/70724
1921 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
1922 restoring out from ...
1923 (free_scc_vn): ... here.
1924 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
1925 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
1926 tail merging.
1927 (pass_fre::execute): Restore SSA info.
1928
1929 2016-04-19 Richard Biener <rguenther@suse.de>
1930
1931 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
1932 * gimple-walk.c (walk_gimple_op): Initialize it.
1933 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
1934 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
1935 remapping SSA names of defs.
1936 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
1937 adjustment.
1938
1939 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
1940
1941 PR middle-end/70689
1942 * lra-constraints.c (equiv_substition_p): New.
1943 (process_alt_operands): Use it.
1944 (swap_operands): Swap it.
1945 (curr_insn_transform): Update it.
1946
1947 2016-04-18 Michael Matz <matz@suse.de>
1948
1949 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
1950 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
1951 * tree-core.h (tree_type_common.align): Use bit-field.
1952 (tree_type_common.spare): New.
1953 (tree_decl_common.off_align): Make smaller.
1954 (tree_decl_common.align): Use bit-field.
1955
1956 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
1957 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
1958 (scan_sharing_clauses): Ditto.
1959 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1960 (omp_finish_file): Ditto.
1961 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
1962 (layout_decl): Ditto.
1963 (relayout_decl): Ditto.
1964 (finalize_record_size): Use SET_TYPE_ALIGN.
1965 (finalize_type_size): Ditto.
1966 (finish_builtin_struct): Ditto.
1967 (layout_type): Ditto.
1968 (initialize_sizetypes): Ditto.
1969 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
1970 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
1971 (lookup_field_for_decl): Use SET_DECL_ALIGN.
1972 (get_chain_field): Ditto.
1973 (get_trampoline_type): Ditto.
1974 (get_nl_goto_field): Ditto.
1975 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1976 SET_DECL_ALIGN.
1977 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
1978 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
1979 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1980 (build_qualified_type): Use SET_TYPE_ALIGN.
1981 (build_aligned_type, build_range_type_1): Ditto.
1982 (build_atomic_base): Ditto.
1983 (build_common_tree_nodes): Ditto.
1984 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
1985 (expand_one_stack_var_at): Ditto.
1986 * coverage.c (build_var): Use SET_DECL_ALIGN.
1987 * except.c (init_eh): Ditto.
1988 * function.c (assign_parm_setup_block): Ditto.
1989 * symtab.c (increase_alignment_1): Ditto.
1990 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
1991 * tree-vect-stmts.c (ensure_base_align): Ditto.
1992 * varasm.c (align_variable): Ditto.
1993 (assemble_variable): Ditto.
1994 (build_constant_desc): Ditto.
1995 (output_constant_def_contents): Ditto.
1996
1997 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
1998 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
1999 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
2000 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
2001 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
2002
2003 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
2004
2005 PR target/70708
2006 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
2007 replace %vmovsd with "%vmovq".
2008 (vec_concatv2df): Likewise.
2009
2010 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
2011
2012 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
2013 (*vec_extractv2si_0): Ditto.
2014 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
2015 (zero_extended_scalar_load_operand splitters): Ditto.
2016 (vec_extract splitters): Ditto.
2017 (*vec_extractv4si_0_zext): Ditto.
2018 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
2019 and lowpart_subreg.
2020 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
2021 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
2022 (*sse4_1_extractps): Use lowpart_subreg.
2023
2024 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2025
2026 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
2027 gld requirements.
2028 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
2029 Mention Solaris 11 packaging changes.
2030 Update gas and gld requirements.
2031 Remove reference to pre-Solaris 10 bug.
2032 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
2033 systems and bugs.
2034 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
2035 with cc.
2036
2037 2016-04-17 Jan Hubicka <jh@suse.cz>
2038
2039 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
2040 max_loop_iterations_int.
2041
2042 2016-04-18 Richard Biener <rguenther@suse.de>
2043
2044 PR tree-optimization/43434
2045 * tree-ssa-structalias.c (struct vls_data): New.
2046 (visit_loadstore): Handle all pointer-based accesses.
2047 (compute_dependence_clique): Compute a bitmap of restrict tags
2048 assigned bases and pass it to visit_loadstore.
2049
2050 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
2051
2052 PR target/70711
2053 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
2054 armv8.1-a and armv8.1-a+crc.
2055
2056 2016-04-18 Richard Biener <rguenther@suse.de>
2057
2058 PR tree-optimization/70701
2059 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
2060 references after translating through a memcpy.
2061
2062 2016-04-18 Richard Biener <rguenther@suse.de>
2063
2064 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
2065 (compute_antic): ... here. For partial antic use regular
2066 postorder and scrap iteration.
2067 (compute_partial_antic_aux): Remove unused return value.
2068 (init_pre): Do not allocate postorder.
2069 (fini_pre): Do not free postorder.
2070
2071 2016-04-18 Richard Biener <rguenther@suse.de>
2072
2073 PR middle-end/37870
2074 * expmed.c (extract_bit_field_1): Remove broken case
2075 using a wider MODE_INT mode.
2076
2077 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
2078
2079 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
2080 unless compiling with at least GCC-4.8.
2081
2082 2016-04-17 Jan Hubicka <jh@suse.cz>
2083
2084 PR bootstrap/70706
2085 * graphite.c (graphite_finalize): Update call to
2086 tree_estimate_probability.
2087 * predict.h (tree_estimate_probability): Update prototype.
2088
2089 2016-04-17 Jan Hubicka <jh@suse.cz>
2090
2091 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
2092 (tree_estimate_probability): Likewise.
2093 (pass_profile::execute): Update.
2094 (report_predictor_hitrates): New function.
2095 * profile.c (compute_branch_probabilities): Use it.
2096 * predict.h (report_predictor_hitrates): Declare.
2097
2098 2016-04-17 Jan Hubicka <jh@suse.cz>
2099
2100 PR ipa/70018
2101 * cgraph.h (cgraph_node::set_const_flag,
2102 cgraph_node::set_pure_flag): Update prototype to return bool;
2103 update comment.
2104 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
2105 of interposable symbol are interposable, too.
2106 (cgraph_set_const_flag_1): Rename to ...
2107 (set_const_flag_1): ... this one; change to self recursive function
2108 instead of call_for_symbol_thunks_and_aliases. Handle correctly
2109 clearnig the flag in all variants and also virtual thunks of const
2110 functions are pure; track if any change was done.
2111 (cgraph_node::set_const_flag): Update.
2112 (struct set_pure_flag_info): New struct.
2113 (cgraph_set_pure_flag_1): Rename to ...
2114 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
2115 rather than pointer encoded flags; track if any changes was done;
2116 handle correctly clearning flag and setting flag of aliases already
2117 declared const.
2118 (cgraph_node::set_pure_flag): Update.
2119 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
2120
2121 2016-04-17 Tom de Vries <tom@codesourcery.com>
2122
2123 PR other/70433
2124 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
2125 backslash in label.
2126
2127 2016-04-17 Tom de Vries <tom@codesourcery.com>
2128
2129 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
2130 '{}<> ' as escape-for-record.
2131
2132 2016-04-17 Tom de Vries <tom@codesourcery.com>
2133
2134 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
2135 structure.
2136
2137 2016-04-17 Tom de Vries <tom@codesourcery.com>
2138
2139 PR other/70185
2140 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
2141 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
2142 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
2143 * passes.c (finish_optimization_passes): Only call
2144 finish_graph_dump_file if dfi->graph_dump_initialized.
2145 (execute_function_dump, pass_init_dump_file): Use
2146 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
2147
2148 2016-04-17 Tom de Vries <tom@codesourcery.com>
2149
2150 PR tree-optimization/70256
2151 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
2152 (debug_varmap): New function.
2153
2154 2016-04-17 Tom de Vries <tom@codesourcery.com>
2155
2156 PR other/70183
2157 * passes.c (pass_manager::register_pass): Propagate pflags.
2158
2159 2016-04-17 Tom de Vries <tom@codesourcery.com>
2160
2161 PR other/68875
2162 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
2163 * passes.c (pass_manager::pass_manager): Declare and init p_start in
2164 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
2165 check if it's equal to p_start.
2166 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
2167
2168 2016-04-15 Jan Hubicka <jh@suse.cz>
2169
2170 PR ipa/70018
2171 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
2172 function does not bind to current def.
2173 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
2174 handle conservatively calls to functions that does not need to bind
2175 to current def.
2176 (check_call): Update call of worse_state.
2177 (ignore_edge_for_nothrow): Update.
2178 (ignore_edge_for_pure_const): Likewise.
2179 (propagate_pure_const): Update calls to worse_state.
2180 (skip_function_for_local_pure_const): Reformat comments.
2181
2182 2016-04-15 Jan Hubicka <jh@suse.cz>
2183
2184 PR ipa/70018
2185 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
2186 (cgraph_node::function_symbol): Likewise.
2187 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2188 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
2189 (symtab_node::ultimate_alias_target): Add REF parameter.
2190 (symtab_node::binds_to_current_def_p): Declare.
2191 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
2192 (cgraph_node::function_symbol): Likewise.
2193 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2194 (cgraph_node::get_availability): Likewise.
2195 (cgraph_edge::binds_to_current_def_p): New inline function.
2196 (varpool_node::get_availability): Add REF parameter.
2197 (varpool_node::ultimate_alias_target): Likewise.
2198 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
2199 (symtab_node::binds_to_current_def_p): Likewise.
2200 * varpool.c (varpool_node::get_availability): Likewise.
2201
2202 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2203
2204 PR target/70662
2205 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
2206 Fix mode size check.
2207
2208 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2209
2210 * BASE-VER: Set to 7.0.0.
2211
2212 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
2213
2214 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
2215
2216 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2217
2218 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
2219 architecture revisions.
2220
2221 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
2222
2223 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
2224 * config/i386/i386.c (ix86_using_red_zone): No longer static.
2225 * config/i386/i386.md (stack decrement to push peepholes): Guard
2226 with !x86_using_red_zone ().
2227
2228 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2229
2230 PR c++/70675
2231 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
2232 to dump_generic_node.
2233 (NIY): Pass also flags to do_niy.
2234
2235 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
2236
2237 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
2238 (simd_clone_vector_of_formal_parm_types)
2239 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
2240 (simd_clone_mangle, simd_clone_create)
2241 (simd_clone_adjust_return_type, create_tmp_simd_array)
2242 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
2243 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
2244 (ipa_simd_modify_function_body, simd_clone_linear_addend)
2245 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
2246 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
2247 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
2248 * omp-simd-clone.c: ... this new file.
2249 (simd_clone_vector_of_formal_parm_types): Make it static.
2250 * Makefile.in (OBJS): Add omp-simd-clone.o.
2251
2252 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2253
2254 PR target/70662
2255 * config/i386/sse.md: Use proper memory operand modifiers.
2256
2257
2258 2016-04-15 Richard Biener <rguenther@suse.de>
2259 Alan Modra <amodra@gmail.com>
2260
2261 PR tree-optimization/70130
2262 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
2263 when alignment stays not the same and no not use the realign
2264 scheme then.
2265
2266 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2267
2268 PR target/70669
2269 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2270 direct move handlers for KFmode. Change TFmode handlers test from
2271 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
2272
2273 2016-04-14 Jakub Jelinek <jakub@redhat.com>
2274
2275 PR c++/70594
2276 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
2277 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
2278 (inlined_polymorphic_ctor_dtor_block_p): Use it.
2279 * tree-ssa-live.c (remove_unused_scope_block_p): When
2280 in_ctor_dtor_block, avoid discarding not just BLOCKs with
2281 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
2282 block_ultimate_origin is FUNCTION_DECL.
2283 (remove_unused_locals): If current_function_decl is
2284 polymorphic_ctor_dtor_p, pass initial true to
2285 remove_unused_scope_block_p' is_ctor_dtor_block.
2286
2287 2016-04-14 Martin Sebor <msebor@redhat.com>
2288
2289 PR c++/69517
2290 PR c++/70019
2291 PR c++/70588
2292 * doc/extend.texi (Variable Length): Revert.
2293
2294 2016-04-14 Marek Polacek <polacek@redhat.com>
2295 Jan Hubicka <hubicka@ucw.cz>
2296
2297 PR c++/70029
2298 * tree.c (verify_type): Disable the canonical type of main variant
2299 check.
2300
2301 2016-04-14 Jason Merrill <jason@redhat.com>
2302
2303 * cfgexpand.c, expr.c: Revert previous change.
2304
2305 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
2306
2307 PR middle-end/70643
2308 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
2309 when building a mem ref for the incoming reduction variable.
2310
2311 2016-04-14 Richard Biener <rguenther@suse.de>
2312
2313 PR tree-optimization/70614
2314 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
2315 loop if the evolution dropped to chrec_dont_know.
2316 (interpret_condition_phi): Likewise.
2317
2318 2016-04-14 Richard Biener <rguenther@suse.de>
2319
2320 PR tree-optimization/70623
2321 * tree-ssa-pre.c (changed_blocks): Make global ...
2322 (compute_antic): ... local here. Move and fix worklist
2323 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
2324 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
2325 worklist handling, dump when ANTIC_IN changed.
2326 (compute_partial_antic_aux): Remove worklist handling.
2327 (init_pre): Do not compute post dominators. Add a comment about
2328 the CFG order chosen.
2329 (fini_pre): Do not free post dominators.
2330
2331 2016-04-13 Martin Sebor <msebor@redhat.com>
2332
2333 PR c++/69517
2334 PR c++/70019
2335 PR c++/70588
2336 * doc/extend.texi (Variable Length): Document C++ specifics.
2337
2338 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2339
2340 PR c++/70641
2341 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
2342 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
2343 eh edges have been purged.
2344
2345 PR c++/70594
2346 * tree-sra.c (create_access_replacement,
2347 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
2348 gets fancy name.
2349 * tree-pretty-print.c (dump_fancy_name): New function.
2350 (dump_decl_name, dump_generic_node): Use it.
2351
2352 2016-04-13 Jason Merrill <jason@redhat.com>
2353
2354 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
2355 * expr.c (expand_expr_real_1): Likewise.
2356
2357 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
2358
2359 * config/i386/i386.md (kunpckhi): Swap operands.
2360 (kunpcksi): Likewise.
2361 (kunpckdi): Likewise.
2362 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
2363 (vec_pack_trunc_<mode>): Likewise.
2364
2365 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2366
2367 PR debug/70628
2368 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
2369
2370 PR middle-end/70633
2371 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
2372 gimplification turns some element into non-constant.
2373
2374 PR debug/70628
2375 * rtl.h (convert_memory_address_addr_space_1): New prototype.
2376 * explow.c (convert_memory_address_addr_space_1): No longer static,
2377 add NO_EMIT argument and don't call convert_modes if true, pass
2378 it down recursively, remove break after return.
2379 (convert_memory_address_addr_space): Adjust caller.
2380 * simplify-rtx.c (simplify_unary_operation_1): Call
2381 convert_memory_address_addr_space_1 instead of convert_memory_address,
2382 if it returns NULL, don't simplify.
2383
2384 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
2385
2386 PR target/70630
2387 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
2388
2389 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2390
2391 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2392 Bump the upper SIMDLEN limits, so that if the return type or
2393 characteristic type if the return type is void can be passed in
2394 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
2395 allowed.
2396
2397 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2398
2399 PR target/70640
2400 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
2401 Do not use "=" constraint on an input constraint.
2402 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2403 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2404 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
2405 generates (neg (abs ...)) instead of (abs ...).
2406
2407 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2408
2409 PR rtl-optimization/70596
2410 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
2411 just invalidate LRA data and reset them. Adjust dump wording.
2412
2413 2016-04-12 Martin Liska <mliska@suse.cz>
2414
2415 Revert
2416 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2417
2418 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2419 estimates here.
2420 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2421 max_loop_iterations_int.
2422 (tree_unswitch_outer_loop): Likewise.
2423 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2424 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2425
2426 2016-04-12 Tom de Vries <tom@codesourcery.com>
2427
2428 PR tree-optimization/68756
2429 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
2430 instead of new_name.
2431
2432 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2433
2434 PR tree-optimization/70602
2435 * tree-sra.c (generate_subtree_copies): Don't write anything into
2436 constant pool decls.
2437
2438 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
2439 regardless whether there are depend clauses or not.
2440
2441 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2442
2443 PR target/70381
2444 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
2445 target attribute and pragma from changing the -mfloat128
2446 and -mfloat128-hardware options.
2447
2448 * doc/extend.texi (Additional Floating Types): Document PowerPC
2449 __float128 restrictions.
2450
2451 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2452
2453 PR target/70133
2454 * config/aarch64/driver-aarch64.c
2455 (aarch64_get_extension_string_for_isa_flags): New.
2456 (arch_extension): Rename to...
2457 (aarch64_arch_extension): ...This.
2458 (ext_to_feat_string): Rename to...
2459 (aarch64_extensions): ...This.
2460 (aarch64_core_data): Keep track of architecture extension flags.
2461 (cpu_data): Rename to...
2462 (aarch64_cpu_data): ...This.
2463 (aarch64_arch_driver_info): Keep track of architecture extension
2464 flags.
2465 (get_arch_name_from_id): Rename to...
2466 (get_arch_from_id): ...This, change return type.
2467 (host_detect_local_cpu): Update and reformat for renames, handle
2468 extensions through common infrastructure.
2469
2470 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2471
2472 PR target/70133
2473 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
2474 track of a canonical flag name.
2475 (all_extensions): Likewise.
2476 (arch_to_arch_name): Also track extension flags enabled by the arch.
2477 (all_architectures): Likewise.
2478 (aarch64_parse_extension): Move to here.
2479 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
2480 rework.
2481 (aarch64_rewrite_selected_cpu): Update for above change.
2482 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
2483 are handled, such that the single explicit value enabled by an
2484 extension is kept seperate from the implicit values it also enables.
2485 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
2486 to here.
2487 (aarch64_parse_extension): New.
2488 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
2489 here to config/aarch64/aarch64-protos.h.
2490 (aarch64_parse_extension): Move from here to
2491 common/config/aarch64/aarch64-common.c.
2492 (aarch64_option_print): Update.
2493 (aarch64_declare_function_name): Likewise.
2494 (aarch64_start_file): Likewise.
2495 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
2496 the canonical flag for extensions.
2497 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
2498 flags.
2499
2500 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2501
2502 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
2503 AARCH64_FL_CRC.
2504
2505 2016-04-09 Tom de Vries <tom@codesourcery.com>
2506
2507 PR tree-optimization/68953
2508 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
2509 first to last subscript.
2510
2511 2016-04-09 Jakub Jelinek <jakub@redhat.com>
2512
2513 PR tree-optimization/70586
2514 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
2515 for any calls.
2516
2517 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
2518
2519 PR lto/70289
2520 PR ipa/70348
2521 PR tree-optimization/70373
2522 PR middle-end/70533
2523 PR middle-end/70534
2524 PR middle-end/70535
2525 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
2526 clauses for acc parallel reductions as necessary. Error on those
2527 that are private.
2528 * omp-low.c (scan_sharing_clauses): Don't install variables which
2529 are used in acc parallel reductions.
2530 (lower_rec_input_clauses): Remove dead code.
2531 (lower_oacc_reductions): Add support for reference reductions.
2532 (lower_reduction_clauses): Remove dead code.
2533 (lower_omp_target): Don't remap variables appearing in acc parallel
2534 reductions.
2535 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
2536
2537 2016-04-08 Jakub Jelinek <jakub@redhat.com>
2538
2539 PR middle-end/70593
2540 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
2541 with multiple SSA_NAME defs, force the outputs other than first
2542 to be live before calling live_track_process_def on each output.
2543
2544 PR rtl-optimization/70574
2545 * fwprop.c (forward_propagate_and_simplify): Don't add
2546 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
2547 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
2548 paradoxical subregs within *loc.
2549
2550 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
2551
2552 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
2553 -ftree-parallelize-loops={0,1}.
2554 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2555 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2556 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2557 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2558 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2559
2560 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
2561
2562 PR sanitizer/70541
2563 * asan.c (instrument_derefs): If we get unknown location, extract it
2564 with EXPR_LOCATION.
2565 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
2566
2567 2016-04-08 Tom de Vries <tom@codesourcery.com>
2568
2569 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
2570 implicit firstprivate clause.
2571
2572 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2573
2574 PR target/70566
2575 * config/arm/thumb2.md (tst + branch-> lsls + branch
2576 peephole below *orsi_not_shiftsi_si): Require that condition
2577 register is dead after the peephole.
2578 (second peephole after the above): Likewise.
2579
2580 2016-04-08 Alan Modra <amodra@gmail.com>
2581
2582 PR target/70117
2583 * builtins.c (fold_builtin_classify): For IBM extended precision,
2584 look at just the high-order double to test for NaN.
2585 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
2586 test just the high double for Inf but both doubles for subnormal
2587 limit.
2588
2589 2016-04-07 Jakub Jelinek <jakub@redhat.com>
2590
2591 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
2592 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
2593 node->simdclone->mask_mode != VOIDmode masks.
2594 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
2595 earlier, use it instead of node->simdclone.
2596 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2597 Set clonei->mask_mode.
2598
2599 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2600
2601 PR c/70436
2602 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
2603 Pass it through to cp_parser_already_scoped_statement.
2604 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
2605 it through to cp_parser_statement.
2606 (cp_parser_statement): Pass IF_P through to
2607 cp_parser_iteration_statement.
2608 (cp_parser_pragma): Adjust call to
2609 cp_parser_iteration_statement.
2610
2611 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2612
2613 PR c/70436
2614 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
2615 resolve a future -Wparentheses warning.
2616 * omp-low.c (scan_sharing_clauses): Likewise.
2617 * tree-parloops.c (eliminate_local_variables): Likewise.
2618
2619 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
2620
2621 PR rtl-optimization/70398
2622 * lra-constraints.c (process_address_1): Check zero scale and code
2623 for reloading with zero scale.
2624
2625 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
2626
2627 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
2628 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
2629
2630 2016-04-06 Jakub Jelinek <jakub@redhat.com>
2631
2632 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2633 Add support for AVX512F clones, include them by default for
2634 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
2635 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
2636 up to 128.
2637
2638 PR middle-end/70550
2639 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
2640 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
2641 firstprivate clauses.
2642 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
2643 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
2644 (lower_omp_target): Set TREE_NO_WARNING for
2645 non-addressable possibly uninitialized vars which are copied into
2646 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
2647
2648 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
2649
2650 * config/pa/predicates.md (integer_store_memory_operand): Accept
2651 REG+D operands with a large offset when reload_in_progress is true.
2652 (floating_point_store_memory_operand): Likewise.
2653
2654 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2655
2656 PR c++/70336
2657 * match.pd (nested int casts): Limit to GIMPLE.
2658
2659 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
2660
2661 PR ipa/66223
2662 * ipa-devirt.c (maybe_record_node): Fix comment; use
2663 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
2664
2665 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2666
2667 PR rtl-optimization/70542
2668 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
2669 if there are any uses other than insn or debug insns.
2670
2671 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
2672 Jakub Jelinek <jakub@redhat.com>
2673
2674 PR tree-optimization/70509
2675 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
2676 Shift HOST_WIDE_INT_1U instead of 1.
2677
2678 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
2679
2680 PR tree-optimization/70509
2681 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
2682 of the vector base type for index.
2683
2684 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
2685
2686 PR target/70510
2687 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
2688
2689 2016-04-05 Richard Biener <rguenther@suse.de>
2690
2691 PR tree-optimization/70526
2692 * tree-sra.c (build_ref_for_offset): Use prev_base to
2693 extract the alias pointer type.
2694
2695 2016-04-05 Richard Biener <rguenther@suse.de>
2696
2697 * dse.c (struct store_info): Remove alias_set member.
2698 (struct read_info_type): Likewise.
2699 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
2700 spill_deleted, clear_alias_set_lookup): Remove.
2701 (get_group_info): Remove dead base == NULL_RTX case.
2702 (dse_step0): Remove initialization of removed variables.
2703 (delete_dead_store_insn): Reomve alias set dumping.
2704 (free_read_records): Remove alias_set handling.
2705 (canon_address): Remove alias_set_out parameter.
2706 (record_store): Remove spill_alias_set, it's always zero.
2707 (check_mem_read_rtx): Likewise.
2708 (dse_step2): Rename from ...
2709 (dse_step2_nospill): ... this. Adjust.
2710 (scan_stores): Rename from ...
2711 (scan_stores_nospill): ... this.
2712 (scan_reads): Rename from ...
2713 (scan_reads_nospill): ... this.
2714 (scan_stores_spill, scan_reads_spill): Remove.
2715 (dse_step3_scan): Remove for_spills argument which is always false.
2716 (dse_step3): Likewise.
2717 (dse_step5): Rename from ...
2718 (dse_step5_nospill): ... this. Remove alias_set handling.
2719 (rest_of_handle_dse): Adjust.
2720
2721 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2722
2723 PR target/70525
2724 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
2725 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
2726 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
2727 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
2728
2729 2016-04-05 Richard Biener <rguenther@suse.de>
2730
2731 PR middle-end/70499
2732 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
2733 non-register type temporaries into SSA.
2734
2735 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
2736
2737 PR ipa/66223
2738 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
2739 calls when sanitizing.
2740 (possible_polymorphic_call_target_p): Fix formatting.
2741
2742 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2743 Jakub Jelinek <jakub@redhat.com>
2744
2745 PR middle-end/70457
2746 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
2747 to ensure a call statement is compatible with a built-in's
2748 prototype.
2749 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
2750 Likewise.
2751
2752 2016-04-04 Richard Biener <rguenther@suse.de>
2753
2754 PR rtl-optimization/70484
2755 * rtl.h (canon_output_dependence): Declare.
2756 * alias.c (canon_output_dependence): New function.
2757 * dse.c (record_store): Use canon_output_dependence rather
2758 than canon_true_dependence.
2759
2760 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2761
2762 PR ipa/68881
2763 * cgraph.h (symtab_node::copy_visibility_from): New function.
2764 * symtab.c (symtab_node::copy_visibility_from): New function.
2765 * ipa-visibility.c (optimize_weakref): New function.
2766 (function_and_variable_visibility): Use it.
2767
2768 2016-04-04 Martin Liska <mliska@suse.cz>
2769
2770 PR hsa/70402
2771 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
2772 value that is really in range handled by SBR instruction.
2773 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
2774 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
2775 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
2776
2777 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
2778
2779 PR target/70416
2780 PR target/67391
2781 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
2782 set, but not for SP_REG operands.
2783
2784 2016-04-02 Martin Sebor <msebor@redhat.com>
2785
2786 PR c++/67376
2787 * fold-const.c (maybe_nonzero_address): New function.
2788 (fold_comparison): Call it. Fold equality and relational
2789 expressions involving null pointers.
2790 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
2791
2792 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
2793
2794 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
2795 the "Y" constraint (scalar FP 0.0 immediate).
2796
2797 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
2798 Add the "const_double" to the list of operand constraints.
2799
2800 2016-04-01 Jakub Jelinek <jakub@redhat.com>
2801
2802 PR rtl-optimization/70467
2803 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
2804 If low word of the last operand is 0, just emit addition/subtraction
2805 for the high word.
2806
2807 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2808
2809 PR target/70404
2810 * config/s390/s390.c (s390_expand_insv): Check for everything
2811 constant instead of just VOIDmode stuff.
2812
2813 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2814
2815 PR target/70496
2816 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
2817
2818 2016-04-01 Nathan Sidwell <nathan@acm.org>
2819
2820 * tree.def (TRY_CATCH_EXPR): Correct documentation.
2821
2822 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
2823
2824 PR rtl-optimization/70461
2825 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
2826 is necessary.
2827
2828 2016-03-31 Martin Liska <mliska@suse.cz>
2829
2830 PR hsa/70399
2831 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
2832 a tree value or an immediate integer value to a buffer
2833 that is eventually copied to a BRIG section.
2834 (emit_immediate_operand): Call the function here.
2835 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
2836 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
2837 of class' fields that are removed.
2838 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
2839 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
2840 m_brig_repr_size fields.
2841
2842 2016-03-31 Martin Liska <mliska@suse.cz>
2843
2844 PR hsa/70391
2845 * hsa-gen.c (hsa_function_representation::update_dominance): New
2846 function.
2847 (convert_addr_to_flat_segment): Likewise.
2848 (gen_hsa_memory_set): New alignment argument.
2849 (gen_hsa_ctor_assignment): Likewise.
2850 (gen_hsa_insns_for_single_assignment): Provide alignment
2851 to gen_hsa_ctor_assignment.
2852 (gen_hsa_insns_for_direct_call): Add new argument.
2853 (expand_lhs_of_string_op): New function.
2854 (expand_string_operation_builtin): Likewise.
2855 (expand_memory_copy): New function.
2856 (expand_memory_set): New function.
2857 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
2858 (convert_switch_statements): Change signature.
2859 (generate_hsa): Use a return value of the function.
2860 (pass_gen_hsail::execute): Do not call
2861 convert_switch_statements here.
2862 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
2863 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
2864 (hsa_function_representation::update_dominance): New function.
2865
2866 2016-03-31 Martin Liska <mliska@suse.cz>
2867
2868 PR hsa/70391
2869 * hsa-brig.c (emit_directive_variable): Emit alignment
2870 according to hsa_symbol::m_align.
2871 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
2872 (dump_hsa_symbol): Dump alignment of HSA symbols.
2873 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
2874 (gen_hsa_addr_with_align): New function.
2875 (hsa_bitmemref_alignment): Use newly added function.
2876 (gen_hsa_insns_for_load): Likewise.
2877 (gen_hsa_insns_for_store): Likewise.
2878 (gen_hsa_memory_copy): New argument added.
2879 (gen_hsa_insns_for_single_assignment): Respect
2880 alignment for assignments processed via gen_hsa_memory_copy.
2881 (gen_hsa_insns_for_direct_call): Likewise.
2882 (gen_hsa_insns_for_return): Likewise.
2883 (gen_function_def_parameters): Set default alignment.
2884 * hsa.c (hsa_object_alignment): New function.
2885 (hsa_byte_alignment): Pasted function.
2886 * hsa.h (hsa_symbol::m_align): New field.
2887
2888 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2889
2890 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
2891 scratch field for goto case.
2892
2893 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
2894
2895 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
2896
2897 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
2898
2899 PR target/70442
2900 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
2901 (scalar_chain::convert_insn): Call convert_op for reg
2902 moves to handle undefined registers.
2903
2904 2016-03-31 Nathan Sidwell <nathan@acm.org>
2905
2906 PR c++/70393
2907 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
2908 Assert we don't want to move backwards.
2909
2910 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
2911
2912 PR target/70453
2913 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
2914
2915 2016-03-31 Jakub Jelinek <jakub@redhat.com>
2916
2917 PR rtl-optimization/70460
2918 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
2919 with operand from REG_LABEL_OPERAND, instead substitute
2920 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
2921 Don't do anything for REG_NON_LOCAL_GOTO jumps.
2922
2923 2016-03-31 Martin Liska <mliska@suse.cz>
2924
2925 * passes.c (execute_one_pass): Do not call
2926 todo_after for a discarded function.
2927
2928 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2929
2930 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
2931 (no_cost, infinite_cost): Initialize the new field.
2932 (get_computation_cost_at): Record setup cost.
2933 (determine_use_iv_cost_address): Skip cost computation for sub
2934 uses if we can estimate it without losing accuracy.
2935
2936 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2937
2938 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2939 estimates here.
2940 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2941 max_loop_iterations_int.
2942 (tree_unswitch_outer_loop): Likewise.
2943 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2944 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2945
2946 2016-03-30 Richard Biener <rguenther@suse.de>
2947
2948 PR middle-end/70450
2949 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
2950
2951 2016-03-30 Jakub Jelinek <jakub@redhat.com>
2952
2953 PR target/70421
2954 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
2955 in gen_blendm expander.
2956
2957 2016-03-30 Nick Clifton <nickc@redhat.com>
2958
2959 PR target/62254
2960 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
2961 case where we are already provided with an SImode SUBREG.
2962
2963 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
2964
2965 PR target/70439
2966 * config/i386/i386.c (ix86_expand_epilogue): Properly check
2967 conflict between DRAP register and __builtin_eh_return.
2968
2969 2016-03-30 Michael Matz <matz@suse.de>
2970 Richard Biener <rguenther@suse.de>
2971
2972 PR ipa/12392
2973 * ipa-polymorphic-call.c (struct type_change_info): Change
2974 speculative to an unsigned allowing to limit the work we do.
2975 (csftc_abort_walking_p): New inline function..
2976 (check_stmt_for_type_change): Limit the number of may-defs
2977 skipped for speculative devirtualization to
2978 max-speculative-devirt-maydefs.
2979 * params.def (max-speculative-devirt-maydefs): New param.
2980 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
2981
2982 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
2983
2984 PR target/63890
2985 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
2986 and TARGET_MACHO.
2987
2988 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
2989
2990 PR tree-optimization/59124
2991 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
2992 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
2993
2994 2016-03-29 Jeff Law <law@redhat.com>
2995
2996 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
2997
2998 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2999
3000 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
3001 to HOST_WIDE_INT.
3002
3003 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3004
3005 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
3006 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
3007 gcrt0.o if linking dynamically.
3008
3009 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3010
3011 PR ipa/70283
3012 * ipa-devirt.c (methods_equal_p): New function.
3013 (compare_virtual_tables): Use it.
3014 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
3015 * cgraphclones.c (clone_function_name_1): Use
3016 symbol_table::symbol_suffix_separator.
3017 * coverage.c (build_var): Likewise.
3018 * symtab.c (symbol_table::symbol_suffix_separator): New.
3019
3020 2016-03-29 Jakub Jelinek <jakub@redhat.com>
3021
3022 PR rtl-optimization/70429
3023 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
3024 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
3025 mode != result_mode.
3026
3027 PR c++/70353
3028 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
3029
3030 PR tree-optimization/70405
3031 * ssa-iterators.h (num_imm_uses): Add missing braces.
3032
3033 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
3034
3035 PR rtl-optimization/68695
3036 * ira-color.c (allocno_copy_cost_saving): New.
3037 (improve_allocation): Use it.
3038
3039 2016-03-29 Richard Henderson <rth@redhat.com>
3040
3041 PR middle-end/70355
3042 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
3043
3044 2016-03-29 Richard Biener <rguenther@suse.de>
3045
3046 PR middle-end/70424
3047 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
3048 use alignment returned by get_pointer_alignment_1 if it is
3049 bigger than BITS_PER_UNIT.
3050 * builtins.c (get_pointer_alignment_1): Do not return true
3051 for alignment extracted from SSA info.
3052
3053 2016-03-28 James Bowman <james.bowman@ftdichip.com>
3054
3055 * config/ft32/ft32.opt (mnodiv): New.
3056 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
3057 * doc/invoke.texi (FT32 Options -mnodiv): New.
3058
3059 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
3060
3061 PR target/70406
3062 * config/i386/i386.md (define_split, andn): Fix modes.
3063
3064 2016-03-26 Richard Biener <rguenther@suse.de>
3065 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3066
3067 PR ipa/70366
3068 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
3069 instead of
3070 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
3071 as 2nd argument to cl_optimization_restore().
3072
3073 2016-03-25 Richard Henderson <rth@redhat.com>
3074
3075 PR target/70120
3076 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
3077 * config/aarch64/aarch64-protos.h: Declare it.
3078 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
3079
3080 2016-03-25 Alan Modra <amodra@gmail.com>
3081
3082 PR target/70052
3083 * config/rs6000/constraints.md (j): Simplify.
3084 * config/rs6000/predicates.md (easy_fp_constant): Exclude
3085 decimal float 0.D.
3086 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
3087 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
3088 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
3089 in all constraint alternatives.
3090 (movtd_64bit_nodm): Delete "j" constraint alternative.
3091
3092 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
3093
3094 * tree-ssa-propagate.c: Enhance docs for
3095 SSA_PROP_NOT_INTERESTING.
3096
3097 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
3098
3099 * doc/extend.texi: Fix typo in documentation to pure attribute.
3100
3101 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
3102
3103 PR target/70319
3104 * config/pa/pa.md (bswapdi2): Use a scratch register.
3105
3106 2016-03-24 Richard Henderson <rth@redhat.com>
3107
3108 PR middle-end/69845
3109 * fold-const.c (extract_muldiv_1): Correct test for multiplication
3110 overflow.
3111
3112 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
3113
3114 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
3115 using ix86_expand_binary_operator instead of gen_andsi3.
3116
3117 2016-03-24 Richard Biener <rguenther@suse.de>
3118
3119 PR tree-optimization/70396
3120 * tree-vect-stmts.c (vectorizable_comparison): Use
3121 get_vectype_for_scalar_type.
3122
3123 2016-03-24 Richard Biener <rguenther@suse.de>
3124
3125 PR middle-end/70370
3126 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
3127 with register bases.
3128
3129 2016-03-24 Richard Biener <rguenther@suse.de>
3130
3131 PR tree-optimization/70372
3132 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
3133 build_all_ones_cst to also handle vector types correctly.
3134
3135 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3136
3137 PR target/70381
3138 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
3139 -mfloat128 here.
3140
3141 2016-03-23 Marek Polacek <polacek@redhat.com>
3142
3143 PR c++/69884
3144 * doc/invoke.texi: Document -Wignored-attributes.
3145
3146 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3147
3148 PR tree-optimization/69042
3149 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
3150 parameter from 30 to 40.
3151
3152 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3153
3154 PR tree-optimization/69042
3155 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
3156 for use with constant offset stripped in base.
3157
3158 2016-03-23 Richard Biener <rguenther@suse.de>
3159
3160 PR middle-end/70251
3161 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
3162 mode compatibility check.
3163 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3164
3165 2016-03-23 Jeff Law <law@redhat.com>
3166
3167 PR tree-optimization/64058
3168 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
3169 CONFLICT_COUNT.
3170 (struct ssa_conflicts): Move up earlier in the file.
3171 (conflicts_, var_map_): New static variables.
3172 (initialize_conflict_count): New function to initialize the
3173 CONFLICT_COUNT field for each conflict pair.
3174 (compare_pairs): Lazily initialize the conflict count and use it
3175 as the first tie-breaker.
3176 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
3177 and wipe conflicts_ and map_ around the call to qsort. Remove
3178 special case for 2 coalesce pairs.
3179 * bitmap.c (bitmap_count_unique_bits): New function.
3180 (bitmap_count_bits_in_word): New function, extracted from
3181 bitmap_count_bits.
3182 (bitmap_count_bits): Use bitmap_count_bits_in_word.
3183 * bitmap.h (bitmap_count_unique_bits): Declare it.
3184
3185 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3186
3187 PR target/69917
3188 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
3189 transparent alias chain for decl assembler name.
3190 * config/sol2.c (solaris_assemble_visibility): Likewise.
3191
3192 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3193
3194 * config/arm/arm1020e.md (1020call_op): Reduce reservation
3195 duration.
3196 (v10_fdivs): Likewise.
3197 (v10_fdivd): Likewise.
3198
3199 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3200
3201 PR driver/70132
3202 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
3203 to not call fclose twice on file.
3204
3205 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3206
3207 PR tree-optimization/70354
3208 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3209 oprnd0 is wider than oprnd1 and there is a cast from the wider
3210 type to oprnd1, mask it with the mask of the narrower type.
3211
3212 PR target/70321
3213 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
3214 Optimize TARGET_STV splitters, if high or low word of last argument
3215 is 0 or -1.
3216
3217 2016-03-22 Jeff Law <law@redhat.com>
3218
3219 PR target/70232
3220 tree-ssa-threadbackward.c
3221 (fsm_find_control_statement_thread_paths): Correctly distinguish
3222 between old style jump threads vs FSM jump threads.
3223
3224 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
3225
3226 PR target/70302
3227 * config/i386/i386.c (scalar_chain::convert_op): Support
3228 uninitialized register usage case.
3229
3230 2016-03-22 Richard Biener <rguenther@suse.de>
3231
3232 PR middle-end/70251
3233 * genmatch.c (gen_transform): Adjust last parameter to a three-state
3234 int...
3235 (capture::gen_transform): ... to change behavior when substituting
3236 a condition into cond or not-cond expr context.
3237 (dt_simplify::gen_1): Adjust.
3238 * gimple-match-head.c: Include gimplify.h for unshare_expr.
3239 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
3240 last change and instead change to
3241 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
3242 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3243
3244 2016-03-22 Anthony Green <green@moxielogic.com>
3245
3246 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
3247 issue for moxiebox targets.
3248 (CC1PLUS_SPEC): Ditto.
3249
3250 2016-03-22 Richard Biener <rguenther@suse.de>
3251
3252 PR middle-end/70333
3253 * fold-const.c (extract_muldiv_1): Properly perform multiplication
3254 in the wide type.
3255
3256 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3257
3258 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
3259
3260 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3261
3262 PR target/70325
3263 * config/i386/i386.c (def_builtin): Handle
3264 OPTION_MASK_ISA_AVX512VL to be and-ed with other
3265 bits.
3266 (const struct builtin_description bdesc_special_args[]):
3267 Remove duplicate ISA bits.
3268
3269 2016-03-22 Jakub Jelinek <jakub@redhat.com>
3270
3271 PR target/70329
3272 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
3273 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
3274 in a way that works also for AVX512BW.
3275
3276 PR target/70300
3277 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
3278 instead of source if operands[1] is xmm16 and above and
3279 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
3280 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
3281
3282 PR c++/70295
3283 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
3284 on assign if (*from_p) is a comparison, set it to
3285 TREE_NO_WARNING (*from_p).
3286
3287 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3288
3289 PR middle-end/70326
3290 * lra.c (restore_scratches): Ignore deleted insns.
3291
3292 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
3293 Jakub Jelinek <jakub@redhat.com>
3294
3295 PR tree-optimization/70317
3296 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
3297 to HONOR_NANS.
3298
3299 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
3300
3301 PR target/70327
3302 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
3303 of ix86_expand_move.
3304 (movoi): Ditto.
3305 (movti): Use general_operand for operand 1 predicate.
3306
3307 2016-03-21 Martin Liska <mliska@suse.cz>
3308
3309 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
3310 insns.
3311 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
3312
3313 2016-03-21 Martin Liska <mliska@suse.cz>
3314
3315 PR ipa/70306
3316 * ipa-icf.c (sem_function::parse): Skip static
3317 constructors and destructors.
3318
3319 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3320
3321 PR target/70296
3322 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
3323 function-like macro, peek following token(s) if it is followed
3324 by CPP_OPEN_PAREN token with optional padding in between, and
3325 if not, don't treat it like a macro.
3326
3327 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
3328 Alexander Monakov <amonakov@ispras.ru>
3329
3330 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
3331 for the stabs debug format.
3332
3333 2016-03-21 Richard Biener <rguenther@suse.de>
3334
3335 PR tree-optimization/70310
3336 * tree-vect-generic.c (expand_vector_condition): Fold the built
3337 condition.
3338
3339 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
3340
3341 PR target/70293
3342 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
3343 Block third alternative for AVX-512VL target,
3344
3345 2016-03-21 Martin Liska <mliska@suse.cz>
3346
3347 PR hsa/70234
3348 * hsa-brig.c (emit_function_directives): Mark unemitted
3349 global variables for emission.
3350 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
3351 (get_symbol_for_decl): Likewise.
3352 * hsa.h (struct hsa_symbol): New flag.
3353
3354 2016-03-21 Richard Biener <rguenther@suse.de>
3355
3356 PR tree-optimization/70288
3357 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
3358 we do not estimate unsimplified all-constant conditionals or
3359 switches as optimized away.
3360
3361 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
3362
3363 PR rtl-optimization/69102
3364 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
3365 when we have a readonly dependency context.
3366
3367 2016-03-18 Jeff Law <law@redhat.com>
3368
3369 PR rtl-optimization/70263
3370 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
3371 (update_equiv_regs): When trying to move a store to after the insn
3372 that sets the source of the store, make sure the store occurs after
3373 the insn that sets the source of the store. When successful note
3374 the REG_EQUIV note created in the dump file.
3375
3376 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
3377 Bernd Schmidt <bschmidt@redhat.com>
3378
3379 * doc/extend.texi: Document more potential problems with basic asms.
3380
3381 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
3382
3383 PR rtl-optimization/70278
3384 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
3385 VOIDmode.
3386
3387 2016-03-18 Jason Merrill <jason@redhat.com>
3388
3389 * calls.c (load_register_parameters): Fix zero size sibcall logic.
3390
3391 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
3392
3393 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
3394 values to 128b regs.
3395
3396 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3397
3398 PR tree-optimization/70252
3399 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
3400 boolean vector has a proper number of elements.
3401 (supportable_narrowing_operation): Likewise.
3402
3403 2016-03-18 Tom de Vries <tom@codesourcery.com>
3404
3405 PR ipa/70269
3406 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
3407
3408 2016-03-18 Jakub Jelinek <jakub@redhat.com>
3409
3410 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
3411 instead of replace_rtx for DEBUG_INSNs.
3412
3413 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3414
3415 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
3416 load type reservations.
3417
3418 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
3419
3420 PR target/70188
3421 * config/pa/constraints.md: Revert 2015-02-13 change. Use
3422 define_constraint for "Q" and "T" constraints.
3423
3424 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
3425
3426 Tweak the pipeline model for Exynos M1
3427
3428 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
3429 model.
3430
3431 2016-03-17 David Malcolm <dmalcolm@redhat.com>
3432
3433 PR c/70264
3434 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
3435 where one or both locations aren't within a line_map.
3436
3437 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
3438
3439 PR driver/70192
3440 * opts.c (finish_options): Don't set flag_pie to the default if
3441 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
3442 if it is -1.
3443
3444 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
3445
3446 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
3447 true as ALL_REGS argument to replace_rtx.
3448
3449 2016-03-17 Richard Biener <rguenther@suse.de>
3450
3451 PR debug/70271
3452 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
3453 last.
3454
3455 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3456
3457 PR target/70245
3458 * rtl.h (replace_rtx): Add ALL_REGS argument.
3459 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
3460 equality and assert mode is the same, instead of just rtx pointer
3461 equality.
3462 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
3463 true as ALL_REGS argument to replace_rtx.
3464
3465 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3466
3467 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
3468 for boolean vector with vector mode only.
3469 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3470
3471 2016-03-17 Nick Clifton <nickc@redhat.com>
3472
3473 PR target/70162
3474 * config/rx/rx.c (rx_print_integer): Print negative constants in
3475 decimal.
3476
3477 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3478
3479 PR target/70261
3480 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
3481
3482 2016-03-16 Richard Henderson <rth@redhat.com>
3483 Richard Biener <rguenth@suse.de>
3484
3485 PR middle-end/70240
3486 PR middle-end/68215
3487 PR tree-opt/68714
3488 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
3489 first operand as is_gimple_condexpr.
3490
3491 PR middle-end/70240
3492 PR middle-end/68215
3493 Revert r231575
3494 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
3495 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
3496 Do not gimplify the result.
3497 (do_unop): Adjust call to tree_vec_extract.
3498 (do_binop): Likewise.
3499 (do_compare): Likewise.
3500 (do_plus_minus): Likewise.
3501 (do_negate): Likewise.
3502 (expand_vector_condition): Likewise.
3503 (do_cond): Likewise.
3504
3505 2016-03-16 Richard Henderson <rth@redhat.com>
3506
3507 PR target/70048
3508 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
3509 (aarch64_classify_address): Use it.
3510 (aarch64_legitimize_address): Force all subexpressions of PLUS
3511 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
3512
3513 2016-03-16 Jakub Jelinek <jakub@redhat.com>
3514 Richard Biener <rguenth@suse.de>
3515
3516 PR target/70245
3517 * rtlanal.c (replace_rtx): For REG, if from is a REG,
3518 return to even if only REGNO is equal, and assert
3519 mode is the same.
3520
3521 2016-03-11 Jeff Law <law@redhat.com>
3522
3523 PR rtl-optimization/70224
3524 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
3525
3526 2016-03-16 Richard Henderson <rth@redhat.com>
3527
3528 PR middle-end/70199
3529 * function.h (struct function): Add has_forced_label_in_static.
3530 * gimplify.c (force_labels_r): Set it.
3531 * lto-streamer-in.c (input_struct_function_base): Read it.
3532 * lto-streamer-out.c (output_struct_function_base): Write it.
3533 * tree-inline.c (has_label_address_in_static_1): Remove.
3534 (copy_forbidden): Remove fndecl parameter; test
3535 has_forced_label_in_static.
3536 (inline_forbidden_p): Update call to copy_forbidden.
3537 (tree_versionable_function_p): Likewise.
3538 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
3539 (chkp_versioning): Likewise.
3540 * tree-inline.h (copy_forbidden): Update decl.
3541
3542 2016-03-16 Marek Polacek <polacek@redhat.com>
3543
3544 PR c/70093
3545 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
3546 function being thunked if the result type doesn't have fixed size.
3547 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
3548 doesn't have fixed size.
3549
3550 2016-03-16 Bin Cheng <bin.cheng@arm.com>
3551
3552 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
3553 reporting malformed loop nest.
3554
3555 2016-03-16 Tom de Vries <tom@codesourcery.com>
3556
3557 PR lto/70187
3558 * ipa-devirt.c (possible_polymorphic_call_targets): Move
3559 nodes.length () == 1 test to before first nodes[0] access.
3560
3561 2016-03-16 Tom de Vries <tom@codesourcery.com>
3562
3563 PR tree-optimization/68715
3564 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
3565 single_pred_p test.
3566
3567 2016-03-16 Tom de Vries <tom@codesourcery.com>
3568
3569 PR tree-optimization/68809
3570 * graphite-scop-detection.c (same_close_phi_node): Test if result types
3571 are the same.
3572
3573 2016-03-16 Carlos O'Donell <carlos@redhat.com>
3574 Sandra Loosemore <sandra@codesourcery.com>
3575
3576 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
3577 on leaf attribute. Mention ELF interposition problems.
3578
3579 2016-03-16 Alan Modra <amodra@gmail.com>
3580
3581 PR rtl-optimization/69195
3582 PR rtl-optimization/47992
3583 * ira.c (indirect_jump_optimize): Ignore artificial defs.
3584 Add comments.
3585
3586 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
3587
3588 PR bootstrap/69513
3589 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
3590
3591 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3592
3593 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
3594
3595 2016-03-15 Jakub Jelinek <jakub@redhat.com>
3596
3597 PR rtl-optimization/70222
3598 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
3599 optimization if mode is different from result_mode, queue up masking
3600 of the result in outer_op. Formatting fix.
3601
3602 PR middle-end/70239
3603 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
3604 of safe_grow.
3605
3606 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3607
3608 PR rtl-optimization/69032
3609 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
3610 looping backwards over basic block insns.
3611
3612 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3613
3614 PR target/66660
3615 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
3616 to non-speculative when propagating trap bits.
3617
3618 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3619
3620 PR rtl-optimization/63384
3621 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
3622 DEBUG_INSN_P insns.
3623
3624 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3625
3626 PR target/64411
3627 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
3628 factored out from ...
3629 (sched_analyze_insn): ... here.
3630 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
3631 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
3632 get_implicit_reg_pending_clobbers in it.
3633 (setup_id_reg_sets): Use setup_id_implicit_regs.
3634 (deps_init_id): Ditto.
3635
3636 2016-03-15 Tom de Vries <tom@codesourcery.com>
3637
3638 PR ipa/70161
3639 * cgraph.c (cgraph_node::get_body): Save, reset and restore
3640 dump_file_name.
3641 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
3642 execute_function_dump.
3643 (execute_one_pass): Don't dump function if it will be dumped after ipa
3644 transform.
3645
3646 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
3647
3648 * genrecog.c (match_pattern_2): If pred is NULL don't call
3649 safe_predicate_mode on it.
3650
3651 2016-03-14 Jakub Jelinek <jakub@redhat.com>
3652
3653 PR middle-end/70219
3654 * lra-constraints.c (delete_move_and_clobber): Change assertion
3655 to also allow dregno == 0.
3656
3657 2016-03-14 Richard Henderson <rth@redhat.com>
3658
3659 PR tree-opt/68714
3660 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
3661 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
3662 (reassociate_bb): Use optimize_vec_cond_expr; avoid
3663 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
3664 on vectors.
3665
3666 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
3667
3668 PR target/70083
3669 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
3670 regs.
3671 (lra_create_live_ranges_1): initialize hard register biggest_mode to
3672 VOIDmode.
3673 * lra-constraints.c (split_reg): For hard regs, try to find the
3674 biggest single-register mode used in the function.
3675
3676 2016-03-14 Richard Biener <rguenther@suse.de>
3677
3678 PR tree-optimization/56365
3679 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
3680 constants to compare against.
3681
3682 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
3683
3684 PR target/70098
3685 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
3686 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
3687 (define_split for the GPR case): Use int_reg_operand instead of
3688 gpc_reg_operand for the output.
3689
3690 2016-03-14 Tom de Vries <tom@codesourcery.com>
3691
3692 PR tree-optimization/70045
3693 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
3694 create_empty_if_region_on_edge argument.
3695
3696 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
3697
3698 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
3699 (STACK_CHECK_PROTECT): Likewise.
3700 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3701 (STACK_CHECK_PROTECT): Likewise.
3702 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3703 (STACK_CHECK_PROTECT): Likewise.
3704 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
3705 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3706 (STACK_CHECK_PROTECT): Likewise.
3707
3708 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
3709
3710 PR rtl-optimization/69307
3711 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
3712 registers in modes that span more than one register.
3713
3714 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
3715
3716 PR target/69614
3717 * lra-constraints.c (delete_move_and_clobber): New.
3718 (remove_inheritance_pseudos): Use it.
3719
3720 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
3721
3722 PR ada/70017
3723 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
3724 the libcall is LCT_THROW.
3725 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
3726 for the checking routine.
3727
3728 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3729
3730 PR target/70131
3731 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
3732 optimization if we have direct move.
3733 (roundu32<mode>2_fprs): Likewise.
3734
3735 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
3736
3737 PR target/70123
3738 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
3739 be rematerialized.
3740 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
3741 Arguments swapped. All callers changed. Take reg_renumber into
3742 account, and Calculate and compare register ranges for hard regs.
3743
3744 2016-03-11 Jeff Law <law@redhat.com>
3745
3746 PR tree-optimization/70190
3747 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3748 Handle cases where we can not extract the taken edge, even though we
3749 found a constant value.
3750
3751 PR tree-optimization/64058
3752 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
3753 (num_coalesce_pairs): Move up earlier in file.
3754 (find_coalesce_pair): Initialize the INDEX field for each pair
3755 discovered.
3756 (compare_pairs): No longer sort on the elements in each pair.
3757 Instead break ties with the index of the coalesce pair.
3758
3759 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3760
3761 PR target/70002
3762 * config/aarch64/aarch64-protos.h
3763 (aarch64_save_restore_target_globals): New prototype.
3764 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
3765 Call the above when popping pragma.
3766 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
3767 New function.
3768 (aarch64_set_current_function): Rewrite using the above.
3769
3770 2016-03-11 Jakub Jelinek <jakub@redhat.com>
3771
3772 PR tree-optimization/70177
3773 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
3774 (extract_ops_from_tree): ... this. In the 2 argument
3775 overload remove _1 suffix.
3776 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
3777 (extract_ops_from_tree): ... this.
3778 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
3779 Adjust callers.
3780 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3781 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
3782 extract_ops_from_tree instead of 2 operand one.
3783
3784 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
3785
3786 PR tree-optimization/70013
3787 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
3788 for constant-pool entries.
3789
3790 2016-03-11 Jakub Jelinek <jakub@redhat.com>
3791
3792 PR rtl-optimization/70174
3793 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
3794 followed by gen_lowpart on force_reg instead of just gen_lowpart.
3795
3796 PR tree-optimization/70169
3797 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
3798 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
3799 for unknown codes.
3800
3801 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
3802 Jakub Jelinek <jakub@redhat.com>
3803
3804 PR target/70160
3805 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
3806 of uninitialized values.
3807
3808 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3809
3810 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
3811 define_expand.
3812 ("*trunctddd2"): New pattern definition.
3813 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
3814 TD->DD truncation.
3815
3816 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3817
3818 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
3819 definitions for BFP and DFP rounding modes.
3820 ("fixuns_truncdddi2", "fixuns_trunctddi2")
3821 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
3822 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
3823 ("fix_trunctf<mode>2"): Use the new constants instead of magic
3824 numbers.
3825
3826 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3827
3828 * config/s390/constraints.md: Adjust comment.
3829 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
3830 s390_decompose_addrstyle_without_index.
3831 * config/s390/predicates.md (shift_count_or_setmem_operand):
3832 Rename to setmem_operand.
3833 * config/s390/s390-protos.h
3834 (s390_decompose_shift_count): Rename to
3835 s390_decompose_addrstyle_without_index.
3836 * config/s390/s390.c (s390_decompose_shift_count)
3837 (s390_mem_constraint, print_shift_count_operand)
3838 (print_operand_address, print_operand): Rename
3839 s390_decompose_shift_count to
3840 s390_decompose_addrstyle_without_index and rename
3841 print_shift_count_operand to print_addrstyle_operand troughout the
3842 file.
3843 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
3844 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
3845 Rename shift_count_or_setmem_operand to setmem_operand.
3846 * config/s390/vx-builtins.md ("vec_insert<mode>")
3847 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
3848 nonmemory_operand.
3849
3850 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3851
3852 PR target/70168
3853 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
3854 Handle overlapping retval and newval.
3855
3856 2016-03-10 Nick Clifton <nickc@redhat.com>
3857
3858 PR target/7044
3859 * config/aarch64/aarch64.c
3860 (aarch64_override_options_after_change_1): When forcing
3861 flag_omit_frame_pointer to be true, use a special value that can
3862 be detected if this function is called again, thus preventing
3863 flag_omit_leaf_frame_pointer from being forced to be false.
3864
3865 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3866
3867 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
3868 Set x_flag_omit_leaf_frame_pointer when handling
3869 -momit-leaf-frame-pointer.
3870
3871 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3872
3873 PR lto/69589
3874 * cgraph.c (cgraph_node::dump): Dump split_part and
3875 indirect_call_target.
3876 * cgraph.h (cgraph_node): Add indirect_call_target flag.
3877 * ipa.c (has_addr_references_p): Cleanup.
3878 (is_indirect_call_target_p): New.
3879 (walk_polymorphic_call_targets): Do not mark virtuals that may be
3880 called indirectly as local.
3881 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
3882
3883 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3884
3885 PR ipa/69630
3886 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3887 on cxa_pure_virtual.
3888
3889 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3890
3891 PR lto/69589
3892 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
3893
3894 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3895
3896 PR lto/69589
3897 * tree.c (need_assembler_name_p): Only record main variant type names.
3898
3899 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3900
3901 PR target/70113.
3902 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
3903 Always define to 0 or 1.
3904 (TARGET_FIX_ERR_A53_843419): New macro.
3905 * config/aarch64/aarch64-elf-raw.h
3906 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
3907 * config/aarch64/aarch64-linux.h: Likewise.
3908 * config/aarch64/aarch64.c
3909 (aarch64_override_options_after_change_1): Do not default
3910 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
3911 843419 is on.
3912 (aarch64_attributes): Handle fix-cortex-a53-843419.
3913 (aarch64_can_inline_p): Likewise.
3914 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
3915
3916 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
3917 Jakub Jelinek <jakub@redhat.com>
3918
3919 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
3920 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
3921 DECL_COMMONS if flag_unconstrained_commons is set.
3922 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3923 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
3924 (funconstrained-commons): Document.
3925
3926 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3927
3928 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
3929 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
3930
3931 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3932
3933 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
3934 has a proper number of elements.
3935
3936 2016-03-10 Alan Modra <amodra@gmail.com>
3937
3938 PR rtl-optimization/69195
3939 PR rtl-optimization/47992
3940 * ira.c (recorded_label_ref): Delete.
3941 (update_equiv_regs): Return void.
3942 (indirect_jump_optimize): New function.
3943 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
3944 before regstat_compute_ri. Don't rebuild_jump_labels here.
3945 Delete update_regstat.
3946
3947 2016-03-10 Richard Biener <rguenther@suse.de>
3948
3949 PR tree-optimization/70128
3950 * tree-ssa-structalias.c (set_uids_in_ptset): Set
3951 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
3952
3953 2016-03-09 Jakub Jelinek <jakub@redhat.com>
3954
3955 PR tree-optimization/70152
3956 * tree-sra.c (replace_removed_params_ssa_names): Copy over
3957 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
3958
3959 PR target/70086
3960 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
3961 instead of gen_sse2_loadlpd.
3962 * config/i386/sse.md (*vec_concatv2df): Rename to...
3963 (vec_concatv2df): ... this.
3964
3965 PR tree-optimization/70127
3966 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
3967
3968 2016-03-09 David Malcolm <dmalcolm@redhat.com>
3969
3970 PR c/68473
3971 PR c++/70105
3972 * diagnostic-show-locus.c (compatible_locations_p): New function.
3973 (layout::layout): Sanitize ranges using compatible_locations_p.
3974
3975 2016-03-09 David Malcolm <dmalcolm@redhat.com>
3976
3977 PR c/68473
3978 PR c++/70105
3979 * diagnostic-show-locus.c (layout_range::layout_range): Replace
3980 location_range param with three const expanded_locations * and a
3981 bool.
3982 (layout::layout): Replace call to
3983 rich_location::lazily_expand_location with get_expanded_location.
3984 Extract the range and perform location expansion here, passing
3985 the results to the layout_range ctor.
3986 * diagnostic.c (source_range::debug): Delete.
3987 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
3988 of rich_location::get_expanded_location.
3989 * gcc-rich-location.c (get_range_for_expr): Delete.
3990 (gcc_rich_location::add_expr): Reimplement to avoid the
3991 rich_location::add_range overload that took a location_range,
3992 passing a location_t instead.
3993
3994 2016-03-09 Richard Biener <rguenther@suse.de>
3995 Jakub Jelinek <jakub@redhat.com>
3996
3997 PR tree-optimization/70138
3998 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3999 Also skip vect_double_reduction_def.
4000
4001 2016-03-09 Jakub Jelinek <jakub@redhat.com>
4002
4003 PR target/70049
4004 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
4005 if the operand is "m".
4006
4007 2016-03-09 Nathan Sidwell <nathan@acm.org>
4008
4009 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
4010
4011 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4012
4013 * config/i386/i386.c (processor_target_table): Fix cost table
4014 intialization order for znver1.
4015
4016 2016-03-08 Jakub Jelinek <jakub@redhat.com>
4017
4018 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
4019 - becuase -> because.
4020 * ipa-reference.c (ignore_module_statics): Likewise.
4021 * cgraph.c (cgraph_node::get_body): Likewise.
4022 * ipa-inline.c (early_inliner): Likewise.
4023 * ipa-devirt.c (types_same_for_odr): Likewise.
4024 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
4025 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
4026
4027 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4028
4029 * tree-ssa-math-opts.c: Fix typo in comment.
4030
4031 2016-03-08 Jakub Jelinek <jakub@redhat.com>
4032
4033 PR target/70110
4034 * config/i386/i386.c (scalar_chain::make_vector_copies,
4035 scalar_chain::convert_reg): Call end_sequence in between
4036 get_insns and emit_conversion_insns rather than after both
4037 calls.
4038
4039 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
4040
4041 PR target/70064
4042 * config/i386/i386.h (machine_function): Add
4043 pc_thunk_call_expanded flag.
4044 (ix86_pc_thunk_call_expanded): New define.
4045 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
4046 (*set_got): Rename insn pattern from set_got.
4047 (*set_got_labelled): Rename inst pattern from set_got_labelled.
4048 * config/i386/i386.c (ix86_compute_frame_layout): Use
4049 ix86_pc_thunk_call_expanded to prevent red-zone.
4050
4051 2016-03-07 Martin Jambor <mjambor@suse.cz>
4052
4053 * hsa.h (hsa_get_ctor_statements): Declare.
4054 (hsa_get_dtor_statements): Likewise.
4055 (hsa_get_kernel_dispatch_type): Likewise.
4056 * hsa.c (hsa_get_ctor_statements): New function.
4057 (hsa_get_dtor_statements): Likewise.
4058 (hsa_get_kernel_dispatch_type): Likewise.
4059 * hsa-brig.c (hsa_cdtor_statements): Removed.
4060 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
4061 hsa_get_dtor_statements.
4062 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
4063 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
4064
4065 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
4066
4067 * config/arm/arm-cores.def (cortex-r8): New.
4068 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
4069 * config/arm/arm-tune.md: Likewise.
4070 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
4071
4072 2016-03-07 Martin Sebor <msebor@redhat.com>
4073
4074 PR rtl-optimization/19705
4075 * doc/invoke.texi (Options That Control Optimization): Clarify
4076 -fno-branch-count-reg.
4077
4078 2016-02-26 Richard Biener <rguenther@suse.de>
4079 Jeff Law <law@redhat.com>
4080
4081 PR tree-optimization/69740
4082 * cfghooks.c (remove_edge): Request loop fixups if we delete
4083 an edge that might turn an irreducible loop into a natural
4084 loop.
4085 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
4086 Move after definition of loops_state_clear.
4087
4088 2016-03-07 Bin Cheng <bin.cheng@arm.com>
4089
4090 PR rtl-optimization/69052
4091 * rtlanal.c (commutative_operand_precedence): Set higher precedence
4092 to CONST_WIDE_INT.
4093
4094 2016-03-07 Tom de Vries <tom@codesourcery.com>
4095
4096 PR tree-optimization/70116
4097 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
4098 is_tm_ending stmts and ubsan/asan internal functions.
4099 (find_duplicate): Use it. Don't test is_tm_ending here.
4100
4101 2016-03-07 Richard Biener <rguenther@suse.de>
4102
4103 PR tree-optimization/70115
4104 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
4105 (propagate_constants_for_unrolling): Use replace_uses_by.
4106
4107 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
4108
4109 PR middle-end/69916
4110 * omp-low.c (struct oacc_loop): Add ifns.
4111 (new_oacc_loop_raw): Initialize it.
4112 (finish_oacc_loop): Clear mask & flags if no ifns.
4113 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
4114 (oacc_loop_xform_loop): Add ifns arg & adjust.
4115 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
4116
4117 2016-03-07 Richard Henderson <rth@redhat.com>
4118
4119 PR rtl-opt/70061
4120 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
4121 (insert_value_copy_on_edge): Likewise.
4122
4123 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4124
4125 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
4126
4127 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4128
4129 PR target/62281
4130 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
4131
4132 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4133
4134 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
4135
4136 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4137
4138 Fix sseimul type attribute.
4139 * config/i386/znver1.md
4140 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
4141 znver1_sseimul_avx256_load) : Fix the type attribute.
4142 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
4143 pipe usage and latency.
4144
4145 2016-03-05 Jakub Jelinek <jakub@redhat.com>
4146
4147 PR c++/70084
4148 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
4149 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
4150 to the right type.
4151
4152 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4153
4154 PR c/69973
4155 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
4156
4157 PR rtl-optimization/69941
4158 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
4159 the reg share its mode.
4160
4161 2016-03-04 Jeff Law <law@redhat.com>
4162
4163 PR tree-optimization/69196
4164 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4165 If the both SSA_NAMEs are anonymous, then consider them unassociated
4166 and include the PHI in the statement count.
4167
4168 2016-03-05 Tom de Vries <tom@codesourcery.com>
4169
4170 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
4171 construct in oacc routine. Check for oacc region in oacc routine.
4172
4173 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4174
4175 PR target/70062
4176 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
4177 2016-02-22 changes, instead don't recurse if RECUR is already true.
4178 Don't change *dynamic_check if RECUR. Adjust recursive caller
4179 to pass true to the new argument.
4180 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
4181
4182 PR target/70059
4183 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
4184 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
4185 fixes.
4186 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
4187
4188 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4189
4190 PR rtl-optimization/57676
4191 * lra-assigns.c (lra_assign): Guard test for maximum iterations
4192 with flag_checking.
4193
4194 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
4195
4196 * tree-vect-patterns.c (search_type_for_mask): Handle
4197 comparison of booleans.
4198
4199 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4200
4201 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
4202 Fix @xref usage.
4203
4204 PR debug/69947
4205 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
4206 all other ops that have dw_val_class_die_ref operands,
4207 and DW_OP_GNU_entry_value.
4208
4209 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4210
4211 PR rtl-optimization/69904
4212 * config/arm/arm.c (arm_cannot_copy_insn_p):
4213 Return true for load-exclusive instructions.
4214
4215 2016-03-03 Jakub Jelinek <jakub@redhat.com>
4216
4217 PR target/70021
4218 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
4219 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
4220 the pattern no matter if it is used just by non-pattern, pattern
4221 or mix thereof.
4222 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
4223 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
4224 oprnd1 def_stmt is in pattern, don't look through it.
4225
4226 2016-03-03 Marek Polacek <polacek@redhat.com>
4227
4228 PR middle-end/70050
4229 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
4230
4231 2016-03-03 Martin Liska <mliska@suse.cz>
4232
4233 PR tree-optimization/70043
4234 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
4235 previous statement if we see a debug statement.
4236
4237 2016-03-03 Richard Biener <rguenther@suse.de>
4238
4239 PR tree-optimization/55936
4240 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
4241 parameter and guard unsafe equivalence use.
4242 (vrp_evaluate_conditional_warnv_with_ops): Always use
4243 safe equivalences but not via the quadratic compare_names
4244 helper.
4245
4246 2016-03-03 Michael Collison <michael.collison@linaro.org>
4247
4248 PR target/70014
4249 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
4250 for operand 1 to s_register_operand. Change predicate for operand
4251 2 to arm_not_immediate_operand.
4252
4253 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
4254
4255 * doc/tm.texi: Regenerated.
4256
4257 2016-03-02 Richard Henderson <rth@redhat.com>
4258
4259 PR rtl-opt/67145
4260 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
4261 simplification when all args are positive non-fixed registers.
4262
4263 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4264
4265 * target.def (lra_p): Specify that new ports should use LRA.
4266
4267 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4268
4269 PR libgomp/69555
4270 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
4271 gimplify_type_sizes the type they refer to.
4272 (omp_notice_variable): Handle reference vars to VLAs.
4273 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
4274 reference to VLA decls in the second pass instead of first pass.
4275
4276 2016-03-02 Tom de Vries <tom@codesourcery.com>
4277
4278 PR tree-optimization/68659
4279 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
4280 new_expr == NULL_TREE.
4281 (get_new_name): Handle ADDR_EXPR.
4282
4283 2016-03-02 Bin Cheng <bin.cheng@arm.com>
4284
4285 PR rtl-optimization/69052
4286 * loop-invariant.c (canonicalize_address): New function.
4287 (inv_can_prop_to_addr_use): Check validity of address expression
4288 which is canonicalized by above function.
4289
4290 2016-03-02 Alan Modra <amodra@gmail.com>
4291
4292 PR ipa/69990
4293 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
4294 larger alignment.
4295
4296 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4297
4298 PR target/70028
4299 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
4300 (*movhi_internal): Put mask moves from and to memory separately
4301 from moves from/to GPRs.
4302
4303 2016-03-02 Richard Biener <rguenther@suse.de>
4304
4305 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
4306 GENERIC expressions in GIMPLE.
4307
4308 2016-03-02 Richard Biener <rguenther@suse.de>
4309
4310 * config/i386/i386.c (type_natural_mode): Fix typo.
4311
4312 2016-03-02 Nick Clifton <nickc@redhat.com>
4313
4314 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
4315
4316 2016-03-02 Richard Biener <rguenther@suse.de>
4317 Uros Bizjak <ubizjak@gmail.com>
4318
4319 PR target/67278
4320 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
4321
4322 2016-03-02 Richard Biener <rguenther@suse.de>
4323
4324 PR middle-end/67278
4325 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
4326
4327 2016-03-02 Marek Polacek <polacek@redhat.com>
4328
4329 PR c/67854
4330 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
4331 "is promoted to" warning.
4332
4333 2016-03-01 DJ Delorie <dj@redhat.com>
4334
4335 * config.gcc: Deprecate mep-*.
4336
4337 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
4338
4339 PR middle-end/70025
4340 * lra-constraints.c (regno_val_use_in): New.
4341 (match_reload): Use it instead of regno_use_in.
4342
4343 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4344
4345 PR rtl-optimization/70007
4346 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
4347 references present in REG_EQUAL notes attached to non-SET patterns.
4348
4349 2016-03-01 Jeff Law <law@redhat.com>
4350
4351 PR tree-optimization/69196
4352 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4353 Appropriately clamp the number of statements to copy when the
4354 thread path does not traverse a loop backedge.
4355
4356 PR tree-optimization/69196
4357 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4358 Do count some PHIs in the thread path against the insn count. Decrease
4359 final statement count by one as the control statement in the last
4360 block will get removed. Remove special cased code for handling PHIs
4361 in the last block.
4362
4363 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
4364
4365 PR target/70027
4366 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
4367 asm dialect alternatives to explicit GOTPCREL calls.
4368
4369 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4370
4371 PR ada/70017
4372 * ira.c (do_reload): Issue warning for generic stack checking here...
4373 * reload1.c (reload): ...instead of here and streamline it.
4374
4375 2016-03-01 Nick Clifton <nickc@redhat.com>
4376
4377 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
4378
4379 2016-03-01 Richard Biener <rguenther@suse.de>
4380
4381 PR tree-optimization/69983
4382 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
4383 types and fall back to operand_equal_p.
4384
4385 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4386
4387 Revert
4388 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4389
4390 * config/s390/constraints.md ("jm8"): New constraint.
4391 * config/s390/predicates.md ("const_int_8bitset_operand"): New
4392 predicate.
4393 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
4394 into ...
4395 ("*setmem_long<setmem_and>"): New pattern.
4396 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
4397 into ...
4398 ("*setmem_long_31z<setmem_and>"): New pattern.
4399 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
4400 New substitution rules with the required attributes.
4401
4402
4403 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4404
4405 Revert
4406 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4407
4408 * gensupport.c (process_substs_on_one_elem): Split loop to
4409 complete mark_operands_used_in_match_dup on all expressions in the
4410 vector first.
4411 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4412 and remove function.
4413
4414 2016-03-01 Richard Biener <rguenther@suse.de>
4415
4416 PR middle-end/70022
4417 * fold-const.c (fold_indirect_ref_1): Fix range checking for
4418 vector BIT_FIELD_REF extract.
4419
4420 2016-03-01 Richard Biener <rguenther@suse.de>
4421
4422 PR tree-optimization/69994
4423 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
4424
4425 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
4426
4427 PR tree-optimization/69956
4428 * tree-vect-stmts.c (supportable_widening_operation): Support
4429 multi-step conversion of boolean vectors.
4430 (supportable_narrowing_operation): Likewise.
4431
4432 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4433
4434 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
4435 anymore.
4436
4437 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4438
4439 * config/s390/subst.md (DSI_VI): New mode iterator.
4440 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
4441 * config/s390/vector.md ("vec_set<mode>"): Move expander before
4442 the insn definition.
4443 ("*vec_set<mode>"): Change predicate and add alternative to
4444 support only either register or const_int operands as element
4445 selector.
4446 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
4447 operands.
4448 ("vec_extract<mode>"): New expander.
4449 ("*vec_extract<mode>"): New insn definition supporting reg and
4450 const_int element selectors.
4451 ("*vec_extract<mode>_plus"): New insn definition supporting
4452 reg+const_int element selectors.
4453 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
4454 following expander+insn definition.
4455 ("<vec_shifts_name><mode>3"): New expander.
4456 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
4457
4458 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4459
4460 * config/s390/s390.md ("*tabort_1"): Change predicate to
4461 nonmemory_operand. Add a second alternative to cover
4462 register as well as const int operands.
4463 ("*tabort_1_plus"): New pattern definition.
4464
4465 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4466
4467 * config/s390/s390.md ("*ashrdi3_cc_31")
4468 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
4469 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
4470 Merge insn definitions into ...
4471 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4472 New pattern definition.
4473 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
4474 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
4475 ("*ashr<mode>3_and"): Merge insn definitions into ...
4476 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4477 New pattern definition.
4478 * config/s390/subst.md ("addr_style_op_cc_subst")
4479 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
4480 substitutions patterns plus attributes.
4481 Add ashiftrt to SUBST iterator.
4482
4483 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4484
4485 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
4486 op2 to nonmemory_operand.
4487 ("*<shift>di3_31", "*<shift>di3_31_and"):
4488 Merge into single pattern definition ...
4489 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
4490 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
4491 pattern definition ...
4492 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
4493 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
4494 iterator.
4495
4496 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4497
4498 * config/s390/predicates.md (const_int_6bitset_operand): New
4499 predicate.
4500 * config/s390/s390.md: Include subst.md.
4501 ("rotl<mode>3"): New expander.
4502 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
4503 ...
4504 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
4505 * config/s390/subst.md: New file.
4506
4507 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4508
4509 * config/s390/s390.md ("op_type", "atype", "length" attributes):
4510 Remove RRR type. It doesn't really exist.
4511 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
4512 attributes.
4513 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
4514 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
4515 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
4516 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
4517 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
4518 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
4519 `enabled' attribute.
4520
4521 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4522
4523 * gensupport.c (process_substs_on_one_elem): Split loop to
4524 complete mark_operands_used_in_match_dup on all expressions in the
4525 vector first.
4526 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4527 and remove function.
4528
4529 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4530
4531 PR target/69706
4532 * config/sparc/sparc.c (NWORDS_UP): Rename to...
4533 (CEIL_NWORDS): ...this. Use CEIL macro.
4534 (compute_fp_layout): Adjust to above renaming.
4535 (function_arg_union_value): Likewise.
4536 (sparc_arg_partial_bytes): Likewise.
4537 (sparc_function_arg_advance): Likewise.
4538
4539 2016-02-29 Jeff Law <law@redhat.com>
4540
4541 PR tree-optimization/70005
4542 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
4543 where an object with a boolean range is compared against a value
4544 outside [0..1].
4545
4546 PR tree-optimization/69999
4547 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
4548 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
4549 loop cleanups.
4550
4551 2016-02-29 Richard Biener <rguenther@suse.de>
4552
4553 PR tree-optimization/69994
4554 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
4555 (get_unary_op): Look through nop conversions.
4556 (ops_equal_values_p): New function, look for equality diregarding
4557 nop conversions.
4558 (eliminate_plus_minus_pair): Use ops_equal_values_p
4559 (repropagate_negates): Do not use get_unary_op here.
4560
4561 2016-02-29 Martin Liska <mliska@suse.cz>
4562
4563 * system.h: Poison ENABLE_CHECKING macro.
4564
4565 2016-02-29 Martin Liska <mliska@suse.cz>
4566
4567 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
4568 is presented in dump flags.
4569 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4570 (hsa_regalloc): Likewise.
4571
4572 2016-02-19 Richard Biener <rguenther@suse.de>
4573
4574 PR tree-optimization/69980
4575 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
4576 permutation of those we need to keep.
4577
4578 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4579
4580 PR target/69706
4581 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
4582 (NWORDS_UP): ...this
4583 (init_cumulative_args): Minor tweaks.
4584 (sparc_promote_function_mode): Likewise.
4585 (scan_record_type): Delete.
4586 (traverse_record_type): New function template.
4587 (classify_data_t): New structure type.
4588 (classify_registers): New inline function.
4589 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
4590 exhausted. Instantiate traverse_record_type on classify_registers and
4591 deal with the case of a structure passed in slot #15 with no FP field
4592 in the first word.
4593 (assign_data_t): New structure type.
4594 (compute_int_layout): New static function.
4595 (compute_fp_layout): Likewise.
4596 (count_registers): New inline function.
4597 (assign_int_registers): New static function.
4598 (assign_fp_registers): Likewise.
4599 (assign_registers): New inline function.
4600 (function_arg_record_value_1): Delete.
4601 (function_arg_record_value_2): Likewise.
4602 (function_arg_record_value_3): Likewise.
4603 (function_arg_record_value): Adjust to above changes. Instantiate
4604 traverse_record_type on count_registers to first count the number of
4605 registers to be used and then on assign_registers to assign them.
4606 (function_arg_union_value): Adjust to above renaming.
4607 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
4608 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
4609 case of a structure passed in slot #15
4610 (sparc_function_arg_advance): Likewise.
4611 (function_arg_padding): Minor tweak.
4612
4613 2016-02-29 Richard Biener <rguenther@suse.de>
4614
4615 PR tree-optimization/69720
4616 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
4617 the adjustment_def path for possibly vectorized defs.
4618 (vect_create_epilog_for_reduction): Handle vectorized initial
4619 defs properly.
4620
4621 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
4622
4623 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
4624
4625 2016-02-27 Jeff Law <law@redhat.com>
4626
4627 Revert
4628 2016-02-26 Richard Biener <rguenther@suse.de>
4629 Jeff Law <law@redhat.com>
4630
4631 PR tree-optimization/69740
4632 * cfghooks.c (remove_edge): Request loop fixups if we delete
4633 an edge that might turn an irreducible loop into a natural
4634 loop.
4635
4636 2016-02-27 Jakub Jelinek <jakub@redhat.com>
4637
4638 PR rtl-optimization/69896
4639 * tree-vect-generic.c (get_compute_type): Avoid single element
4640 vector types.
4641
4642 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
4643
4644 Rename the AArch64 tuning option and related functions to enable the
4645 Newton series for the reciprocal square root to reflect its
4646 approximative characteristic.
4647
4648 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
4649 function to "aarch64_emit_approx_rsqrt".
4650 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
4651 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
4652 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
4653 (xgene1_tunings): Likewise.
4654 (use_rsqrt_p): Likewise.
4655 (aarch64_emit_swrsqrt): Use new function name.
4656 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
4657 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
4658 text explaining this option.
4659 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
4660
4661 2016-02-26 Jakub Jelinek <jakub@redhat.com>
4662
4663 PR target/69969
4664 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4665 complain about -mallow-movmisalign without -mvsx if
4666 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
4667
4668 2016-02-26 Joel Sherrill <joel@rtems.org>
4669
4670 * config.gcc: Add x86_64-*-rtems*.
4671 * gcc/config/i386/rtems-64.h: New file.
4672
4673 2016-02-26 Joel Sherrill <joel@rtems.org>
4674
4675 * config.gcc: Add aarch64-*-rtems*.
4676 * gcc/config/aarch64/rtems.h: New file.
4677
4678 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
4679
4680 PR target/69946
4681 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
4682 shift amount using %h. Add comment.
4683
4684 2016-02-26 Richard Biener <rguenther@suse.de>
4685 Jeff Law <law@redhat.com>
4686
4687 PR tree-optimization/69740
4688 * cfghooks.c (remove_edge): Request loop fixups if we delete
4689 an edge that might turn an irreducible loop into a natural
4690 loop.
4691
4692 2016-02-26 Martin Jambor <mjambor@suse.cz>
4693
4694 PR middle-end/69920
4695 * tree-sra.c (sra_modify_assign): Do not remove loads of
4696 uninitialized aggregates to SSA_NAMEs.
4697
4698 2016-02-26 Richard Henderson <rth@redhat.com>
4699
4700 PR target/69709
4701 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
4702 pseudo in case the target rtx matches the source of the left
4703 shift.
4704
4705 2016-02-26 Martin Jambor <mjambor@suse.cz>
4706
4707 PR hsa/69568
4708 * hsa.h (hsa_type_packed_p): Declare.
4709 * hsa.c (hsa_type_packed_p): New function.
4710 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
4711 loads.
4712 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
4713 * hsa-brig.c (emit_basic_insn): Likewise.
4714
4715 2016-02-26 Martin Jambor <mjambor@suse.cz>
4716
4717 pr hsa/69674
4718 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
4719 pointers.
4720 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
4721
4722 2016-02-26 Martin Jambor <mjambor@suse.cz>
4723
4724 * hsa.h (is_a_helper): New overload for hsa_op_immed for
4725 hsa_op_with_type operands.
4726 (hsa_unsigned_type_for_type): Declare.
4727 * hsa.c (hsa_unsigned_type_for_type): New function.
4728 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
4729 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
4730 the finalizer. Do not emit extra move.
4731
4732 2016-02-26 Martin Jambor <mjambor@suse.cz>
4733
4734 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
4735 atomic operations in private segment.
4736
4737 2016-02-26 Martin Jambor <mjambor@suse.cz>
4738
4739 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
4740 statements to wi->info. Also disallow omp simd constructs.
4741 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
4742 for not gridifying. Dump special string for omp_for.
4743
4744 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4745
4746 PR target/69245
4747 * config/aarch64/aarch64.c (aarch64_set_current_function):
4748 Save/restore target globals when switching to
4749 target_option_default_node.
4750
4751 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4752
4753 PR target/69613
4754 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
4755 Return 0 if !SHIFT_COUNT_TRUNCATED.
4756
4757 2016-02-26 Jakub Jelinek <jakub@redhat.com>
4758 Eric Botcazou <ebotcazou@adacore.com>
4759
4760 PR rtl-optimization/69891
4761 * dse.c (scan_insn): If we can't figure out memset arguments
4762 or they are non-constant, call clear_rhs_from_active_local_stores.
4763
4764 2016-02-26 Martin Liska <mliska@suse.cz>
4765
4766 * doc/extend.texi: Mention clog10, clog10f an clog10l
4767 in Builtins section.
4768
4769 2016-02-26 Martin Liska <mliska@suse.cz>
4770
4771 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
4772 CHECKING_P.
4773 (resolve_args_picking_1): Likewise.
4774 * dwarf2out.h (struct GTY): Likewise.
4775
4776 2016-02-26 Martin Liska <mliska@suse.cz>
4777
4778 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
4779 with flag_checking.
4780 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4781
4782 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
4783 Martin Liska <mliska@suse.cz>
4784
4785 * doc/install.texi: Mention --enable-valgrind-annotations.
4786
4787 2016-02-26 Richard Biener <rguenther@suse.de>
4788
4789 PR tree-optimization/69551
4790 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
4791 looking through aliases adjust DECL_PT_UID to refer to the
4792 ultimate alias target.
4793
4794 2016-02-25 Martin Liska <mliska@suse.cz>
4795
4796 PR middle-end/69919
4797 * alloc-pool.c (after_memory_report): New variable.
4798 * alloc-pool.h (base_pool_allocator ::release): Do not use
4799 the infrastructure if after_memory_report.
4800 * toplev.c (toplev::main): Mark after memory report.
4801
4802 2016-02-25 Richard Biener <rguenther@suse.de>
4803
4804 PR tree-optimization/48795
4805 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
4806
4807 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4808
4809 PR driver/68463
4810 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
4811 offloading is enabled and -fopenacc or -fopenmp is specified.
4812 (CRTOFFLOADEND): Likewise.
4813 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
4814 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
4815 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
4816 (offload_objects_file_name): New static var.
4817 (tool_cleanup): Remove offload_objects_file_name file.
4818 (find_offloadbeginend): Replace with ...
4819 (find_crtoffloadtable): ... this.
4820 (run_gcc): Remove offload_argc and offload_argv.
4821 Get offload_objects_file_name from -foffload-objects=... option.
4822 Read names of object files with offload from this file, pass them to
4823 compile_images_for_offload_targets. Don't call find_offloadbeginend and
4824 don't pass offloadbegin and offloadend to the linker. Don't pass
4825 offload non-LTO files to the linker, because now they're not claimed.
4826
4827 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
4828
4829 PR ipa/69630
4830 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4831 on builtin_unreachable.
4832
4833 2016-02-25 Jakub Jelinek <jakub@redhat.com>
4834
4835 PR rtl-optimization/69896
4836 * regcprop.c: Include cfgrtl.h.
4837 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
4838 than remembered mode, either delete it (if noop_move_p), or
4839 treat like copy_p but not noop_p instruction.
4840
4841 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4842
4843 PR debug/69705
4844 * dwarf2out.c (gen_variable_die): Work around buggy LTO
4845 - allow NULL decl for Fortran DW_TAG_common_block variables.
4846
4847 2016-02-24 Jason Merrill <jason@redhat.com>
4848
4849 * common.opt (flifetime-dse): Add -flifetime-dse=1.
4850
4851 2016-02-24 Richard Biener <rguenther@suse.de>
4852 Jakub Jelinek <jakub@redhat.com>
4853
4854 PR middle-end/69760
4855 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
4856 conditionally executed ops to well-defined overflow behavior.
4857
4858 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4859
4860 PR middle-end/69915
4861 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
4862 elements.
4863
4864 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4865
4866 PR rtl-optimization/69886
4867 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
4868 argument. Use it when checking validity of set instructions.
4869 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
4870 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
4871 callsite.
4872 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
4873 * store-motion.c (find_moveable_store): Update
4874 can_assign_to_reg_without_clobbers_p callsite.
4875
4876 2016-02-24 Richard Biener <rguenther@suse.de>
4877
4878 PR middle-end/68963
4879 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
4880 bogus check.
4881 (record_nonwrapping_iv): Do not fall back to the low/high bound
4882 for non-constant IV bases if the stmt is not always executed.
4883
4884 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4885
4886 * config/arm/arm-cores.def (cortex-a32): New entry.
4887 * config/arm/arm-tables.opt: Regenerate.
4888 * config/arm/arm-tune.md: Regenerate.
4889 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
4890 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
4891 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
4892 for -mcpu and -mtune.
4893
4894 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4895
4896 PR target/69875
4897 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
4898 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
4899 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
4900 (atomic_loaddi_1): Delete.
4901 (atomic_loaddi): Rewrite expander using the above changes.
4902
4903 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4904
4905 PR c/69918
4906 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
4907 2 to 3.
4908
4909 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4910 Richard Biener <rguenth@suse.de>
4911
4912 PR middle-end/69909
4913 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
4914 set_mem_attributes if tem is SSA_NAME which got expanded
4915 as a MEM.
4916
4917 2016-02-24 Richard Biener <rguenther@suse.de>
4918
4919 PR tree-optimization/69907
4920 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
4921 end of permutations for BB vectorization.
4922
4923 2016-02-24 Christian Bruel <christian.bruel@st.com>
4924
4925 * config/arm/arm-c.c (arm_option_override): Initialize
4926 target_option_current_node.
4927 * config/arm/arm.c (arm_pragma_target_parse): Replace
4928 build_target_option_node call by target_option_current_node.
4929 Set target_option_current_node.
4930 Fix comments.
4931
4932 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
4933
4934 PR target/69810
4935 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
4936 define_insn_and_split to define_insn.
4937 (zero_extendqi<mode>2_dot2): Same.
4938 (extendqi<mode>2_dot): Same.
4939 (extendqi<mode>2_dot2): Same.
4940
4941 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4942
4943 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
4944 and add bypass for AES{D,E} and AESMC pairs.
4945 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
4946 and AESMC pairs.
4947
4948 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4949
4950 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
4951 series for reciprocal square root in Exynos M1.
4952
4953 2016-02-23 Martin Sebor <msebor@redhat.com>
4954
4955 PR c/69759
4956 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
4957 __builtin_alloca_with_align.
4958
4959 2016-02-23 Richard Henderson <rth@redhat.com>
4960
4961 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
4962 (ix86_register_pragmas): Remove __seg_tls.
4963 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
4964 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
4965 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
4966 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
4967 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
4968 * doc/extend.texi (__seg_tls): Remove item.
4969
4970 2016-02-23 Richard Biener <rguenther@suse.de>
4971
4972 * alloc-pool.h (struct allocation_object): Make id member
4973 conditional on CHECKING_P again.
4974 (get_instance): Adjust.
4975 (base_pool_allocator): Likewise.
4976
4977 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4978
4979 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
4980 (parallelize_loops): In OpenACC kernels mode, set n_threads to
4981 zero.
4982 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
4983 flag_openacc.
4984 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
4985
4986 2016-02-23 Richard Biener <rguenther@suse.de>
4987
4988 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
4989 * bitmap.h (struct bitmap_usage): Likewise.
4990 (bitmap_move): Declare.
4991 * bitmap.c (register_overhead): Take size_t argument.
4992 (bitmap_move): New function.
4993 * df-problems.c (df_rd_transfer_function): Use bitmap_move
4994 to properly account overhead.
4995 * tree.c (free_node): Use tree_size.
4996
4997 2016-02-23 Jakub Jelinek <jakub@redhat.com>
4998
4999 PR c++/69902
5000 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
5001 when inverting comparison.
5002
5003 PR c/69900
5004 * common.opt (Wunreachable-code): Add Warning flag.
5005
5006 2016-02-23 Mark Wielaard <mjw@redhat.com>
5007 Jakub Jelinek <jakub@redhat.com>
5008
5009 PR c/69911
5010 * cgraphunit.c (check_global_declaration): Check main_input_filename
5011 and DECL_SOURCE_FILE are not NULL.
5012
5013 2016-02-23 Martin Jambor <mjambor@suse.cz>
5014
5015 PR tree-optimization/69666
5016 * tree-sra.c (sra_modify_assign): Do not attempt to create
5017 default_def replacements for unscalarizable regions.
5018
5019 2016-02-20 Mark Wielaard <mjw@redhat.com>
5020
5021 PR c/28901
5022 * cgraphunit.c (check_global_declaration): Check level of
5023 warn_unused_const_variable and main_input_filename.
5024 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
5025 (-Wunused-variable): For C implies -Wunused-const-variable=1.
5026 (-Wunused-const-variable): Explain levels 1 and 2.
5027
5028 2016-02-22 Jakub Jelinek <jakub@redhat.com>
5029
5030 PR target/69888
5031 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
5032 identical arguments. Formatting and spelling fixes.
5033
5034 PR target/69885
5035 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
5036 be specified.
5037
5038 PR target/69894
5039 PR target/69895
5040 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
5041 and m68k-devices.def.
5042 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
5043 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
5044
5045 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5046
5047 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
5048 and HImode registers.
5049
5050 2016-02-22 Richard Biener <rguenther@suse.de>
5051
5052 PR tree-optimization/69882
5053 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
5054 preserve permutations present because of gaps.
5055 (vect_supported_load_permutation_p): Always continue checking
5056 permutations after vect_attempt_slp_rearrange_stmts.
5057
5058 2016-02-22 Bin Cheng <bin.cheng@arm.com>
5059
5060 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
5061 min_profitable_estimate, rather than min_profitable_iters.
5062
5063 2016-02-22 Jakub Jelinek <jakub@redhat.com>
5064
5065 PR target/69885
5066 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
5067 SImode for last match_operand.
5068
5069 2016-02-22 Martin Liska <mliska@suse.cz>
5070
5071 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
5072 return bitsize - 1 as the return value.
5073
5074 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
5075
5076 PR target/69806
5077 PR target/54089
5078 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
5079 Handle negative shift counts.
5080 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
5081 force_reg on the shift constant.
5082 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
5083 (lshrsi3_d): Handle negative shift counts.
5084
5085 2016-02-22 Richard Biener <rguenther@suse.de>
5086 Tom de Vries <tom@codesourcery.com>
5087
5088 * graph.c: Include dumpfile.h.
5089 (print_graph_cfg): Split into three overloads.
5090 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
5091
5092 2016-02-22 Tom de Vries <tom@codesourcery.com>
5093
5094 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
5095 dump-fn.
5096
5097 2016-02-22 Richard Biener <rguenther@suse.de>
5098
5099 PR ipa/37448
5100 * ipa-inline-transform.c (inline_call): When not updating
5101 overall summaries adjust self size by the growth estimate.
5102 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
5103 hash-set, do not update overall summaries here. Renamed from ...
5104 (inline_to_all_callers): ... this which is now wrapping the
5105 above and performing delayed overall summary update.
5106 (early_inline_small_functions): Delay updating of the overall
5107 summary.
5108
5109 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
5110
5111 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
5112 variable.
5113
5114 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5115
5116 PR driver/69805
5117 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
5118 :%* in %:gt() argument.
5119 (greater_than_spec_func): Adjust for expecting only numbers,
5120 if there are more than two numbers, compare the last two.
5121
5122 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
5123
5124 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
5125 -Wnarrowing with -std.
5126
5127 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5128
5129 PR c++/69851
5130 * expr.c (store_field): Don't use bit-field path if exp is
5131 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
5132 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
5133 and the assignment can be performed by bitwise copy. Formatting
5134 fix.
5135
5136 PR middle-end/69838
5137 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
5138 call copy_reg_eh_region_note_forward on before and/or after sequences
5139 and remove note from insn if it no longer can throw.
5140
5141 PR target/69820
5142 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
5143 if TARGET_AVX512BW.
5144
5145 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5146
5147 * config/s390/vector.md: Add missing commutative operand markers
5148 to the patterns which qualify for one.
5149 * config/s390/vx-builtins.md: Likewise.
5150
5151 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5152
5153 * config/s390/vector.md (VI, VI_QHS): Add single element vector
5154 types to mode iterators.
5155 (vec_double): ... and mode attribute.
5156 * config/s390/vx-builtins.md (non_vec_int): Likewise.
5157
5158 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5159
5160 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
5161 Change the predicate of op2 from nonimmediate to general and let
5162 reload fix it if necessary.
5163
5164 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5165
5166 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
5167
5168 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5169
5170 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
5171 mode.
5172
5173 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5174
5175 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
5176 * config/s390/s390.c (s390_expand_vec_movstr): New function.
5177 * config/s390/s390.md ("movstr<P:mode>"): Call
5178 s390_expand_vec_movstr.
5179
5180 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5181
5182 * config/s390/s390.md: Add missing output modifier for operand 1
5183 to print it as address properly.
5184
5185 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5186
5187 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
5188 * config/s390/2964.md: New file.
5189 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
5190 of insn grouping attributes depending on the CPU level.
5191 (s390_get_unit_mask): New function.
5192 (s390_sched_score): Remove the OOO from the scheduling macros.
5193 Add loop to calculate a score for the instruction mix.
5194 (s390_sched_reorder): Likewise plus improve debug output.
5195 (s390_sched_variable_issue): Rename macros as above. Calculate
5196 the unit distances after actually scheduling an insn. Improve
5197 debug output.
5198 (s390_sched_init): Clear last_scheduled_unit_distance array.
5199 * config/s390/s390.md: Include 2964.md.
5200
5201 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5202
5203 PR target/69671
5204 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
5205 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
5206 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
5207 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
5208 *avx512f_<code>v8div16qi2_mask_1): New insns.
5209
5210 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5211
5212 PR target/68404
5213 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
5214 2016-02-09 change.
5215
5216 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
5217 earlyclobber from target. Use wF constraint for fused memory
5218 address.
5219 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5220
5221 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5222 Martin Liska <mliska@suse.cz>
5223
5224 PR sanitizer/69863
5225 * cfgexpand.c (asan_sanitize_stack_p): New function.
5226 (partition_stack_vars): Use the function.
5227 (expand_stack_vars): Likewise.
5228 (defer_stack_allocation): Likewise.
5229 (expand_used_vars): Likewise.
5230
5231 2016-02-18 Richard Biener <rguenther@suse.de>
5232
5233 PR middle-end/69553
5234 * fold-const.c (operand_equal_p): Properly compare offsets for
5235 IMAGPART_EXPR and ARRAY_REF.
5236
5237 2016-02-18 Nick Clifton <nickc@redhat.com>
5238
5239 PR target/62254
5240 PR target/69610
5241 * config/arm/arm.c (arm_option_override_internal): Disable
5242 interworking if the target does not support thumb instructions.
5243 (arm_reload_in_hi): Handle the case where a register to register
5244 move needs reloading because there is no simple pattern to handle
5245 it.
5246 (arm_reload_out_hi): Likewise.
5247
5248 2016-02-18 Richard Biener <rguenther@suse.de>
5249
5250 PR middle-end/69854
5251 * match.pd: Don't use fold_binary or fold_unary for folding
5252 constants.
5253
5254 2016-02-17 Jakub Jelinek <jakub@redhat.com>
5255
5256 PR c++/69850
5257 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
5258 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
5259 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
5260 warn on gimple_no_warning_p statements.
5261
5262 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
5263
5264 * doc/extend.texi (C++ Attributes): Correct description of
5265 warn_unused type attribute.
5266
5267 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5268
5269 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
5270 correct instruction.
5271
5272 2016-02-17 Richard Biener <rguenther@suse.de>
5273
5274 PR rtl-optimization/69609
5275 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
5276 (find_traces_1_round): When ending a trace update cached priority
5277 of successors.
5278 (bb_to_key): Use cached priority when available.
5279 (copy_bb): Initialize cached priority.
5280 (reorder_basic_blocks_software_trace_cache): Likewise.
5281
5282 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5283
5284 PR target/69161
5285 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
5286 New predicate.
5287 (aarch64_comparison_operator): Break overly long line into two.
5288 (aarch64_comparison_operation): Likewise.
5289 * config/aarch64/aarch64.md (cstorecc4): Use
5290 aarch64_comparison_operator_mode instead of
5291 aarch64_comparison_operator.
5292 (cstore<mode>4): Likewise.
5293 (aarch64_cstore<mode>): Likewise.
5294 (*cstoresi_insn_uxtw): Likewise.
5295 (cstore<mode>_neg): Likewise.
5296 (*cstoresi_neg_uxtw): Likewise.
5297
5298 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5299
5300 PR target/69161
5301 * config/arm/predicates.md (arm_comparison_operator_mode):
5302 New predicate.
5303 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
5304 instead of arm_comparison_operator.
5305 (*mov_negscc): Likewise.
5306 (*mov_notscc): Likewise.
5307 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
5308 (*thumb2_mov_negscc): Likewise.
5309 (*thumb2_mov_negscc_strict_it): Likewise.
5310 (*thumb2_mov_notscc): Likewise.
5311 (*thumb2_mov_notscc_strict_it): Likewise.
5312
5313 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
5314
5315 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
5316 Add missing return.
5317
5318 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
5319
5320 * config/visium/visium.c (machine_libfunc_index): New enum.
5321 (machine_libfuncs): New structure.
5322 (visium_libfuncs): New static variable.
5323 (TARGET_INIT_LIBFUNCS): Define to...
5324 (visium_init_libfuncs): ...this. New function.
5325 (expand_block_move_4): Use the appropriate libfunc.
5326 (expand_block_move_2): Likewise.
5327 (expand_block_move_1): Likewise.
5328 (expand_block_set_4): Likewise.
5329 (expand_block_set_2): Likewise.
5330 (expand_block_set_1): Likewise.
5331 (visium_trampoline_init): Likewise.
5332
5333 2016-02-17 Nick Clifton <nickc@redhat.com>
5334
5335 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
5336 TI's devices.csv file as of March 2016.
5337
5338 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
5339
5340 PR Target/48344
5341 * opts-global.c (handle_common_deferred_options): Introduce and
5342 initialize two global variables to remember command-line options
5343 specifying a stack-limiting register.
5344 * opts.h: Add extern declarations of the two new global variables.
5345 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
5346 variable based on the values of the two new global variables.
5347
5348 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5349
5350 PR c/69835
5351 * common.opt (Wnonnull-compare): New warning.
5352 * doc/invoke.texi (-Wnonnull): Remove text about comparison
5353 of arguments against NULL.
5354 (-Wnonnull-compare): Document.
5355 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
5356 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
5357 * passes.def (pass_warn_nonnull_compare): Add.
5358 * gimple-ssa-nonnull-compare.c: New file.
5359
5360 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5361
5362 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
5363 AARCH64_EXTRA_TUNE_RECIP_SQRT.
5364
5365 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5366
5367 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
5368 reciprocal sqrt for -mlow-precision-recip-sqrt.
5369
5370 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5371 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5372
5373 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
5374 always use lane loads to construct non-constant vectors.
5375
5376 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5377
5378 * config/aarch64/aarch64.md
5379 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
5380 constraints for operand 3.
5381 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
5382
5383 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5384 Richard Biener <rguenther@suse.de>
5385
5386 PR tree-optimization/69820
5387 * tree-vect-patterns.c (type_conversion_p): Return false if
5388 *orig_type is unsigned single precision or boolean.
5389 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
5390 Formatting fix.
5391
5392 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5393
5394 PR rtl-optimization/69764
5395 PR rtl-optimization/69771
5396 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
5397 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
5398
5399 2016-02-16 Richard Biener <rguenther@suse.de>
5400
5401 PR tree-optimization/69776
5402 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
5403 sets from caller.
5404 (indirect_refs_may_alias_p): Likewise.
5405 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
5406 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
5407 according to tbaa_p.
5408 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
5409 (optimize_stmt): For redundant store discovery do not allow tbaa.
5410
5411 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
5412
5413 PR tree-optimization/69714
5414 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
5415 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
5416
5417 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
5418
5419 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
5420 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
5421 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
5422 * config/arc/arc.c (arc_init): Check FPU options.
5423 (get_arc_condition_code): Handle new CC_FPU* modes.
5424 (arc_select_cc_mode): Likewise.
5425 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
5426 register pair only. Allow access for ARCv2 accumulator.
5427 (gen_compare_reg): Whenever we have FPU support use FPU compare
5428 instructions.
5429 (arc_reorg): Don't generate brcc insns when FPU compare
5430 instructions are involved.
5431 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
5432 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
5433 floating point emulation.
5434 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
5435 (REVERSE_CONDITION): Add new CC_FPU* modes.
5436 (TARGET_FP_SP_BASE): Define.
5437 (TARGET_FP_DP_BASE): Likewise.
5438 (TARGET_FP_SP_FUSED): Likewise.
5439 (TARGET_FP_DP_FUSED): Likewise.
5440 (TARGET_FP_SP_CONV): Likewise.
5441 (TARGET_FP_DP_CONV): Likewise.
5442 (TARGET_FP_SP_SQRT): Likewise.
5443 (TARGET_FP_DP_SQRT): Likewise.
5444 (TARGET_FP_DP_AX): Likewise.
5445 * config/arc/arc.md (ARCV2_ACC): New constant.
5446 (type): New fpu type attribute.
5447 (SDF): Conditional iterator.
5448 (cstore<mode>, cbranch<mode>): Change expand condition.
5449 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
5450 handles FPU/FPX cases as well.
5451 * config/arc/arc.opt (mfpu): New option.
5452 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
5453 Renamed.
5454 (adddf3, muldf3, subdf3): Removed.
5455 * config/arc/predicates.md (proper_comparison_operator): Recognize
5456 CC_FPU* modes.
5457 * config/arc/fpu.md: New file.
5458 * doc/invoke.texi (ARC Options): Document mfpu option.
5459
5460 2016-02-16 Richard Biener <rguenther@suse.de>
5461
5462 PR rtl-optimization/69291
5463 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
5464 noce_operand_ok check.
5465
5466 2016-02-16 Tom de Vries <tom@codesourcery.com>
5467
5468 PR lto/67709
5469 * omp-low.c (simd_clone_create): Remove call to
5470 symtab->call_cgraph_insertion_hooks.
5471
5472 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5473
5474 PR tree-optimization/69802
5475 * tree-ssa-reassoc.c (update_range_test): If op is
5476 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
5477 op == 1 test of precision 1 integral op, otherwise handle
5478 that case as op itself. Fix up formatting.
5479 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
5480 up formatting.
5481
5482 2016-02-16 Richard Biener <rguenther@suse.de>
5483
5484 PR tree-optimization/69586
5485 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
5486 types for conversion sources.
5487
5488 2016-02-16 Richard Biener <rguenther@suse.de>
5489
5490 PR middle-end/69801
5491 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
5492 mask OEP_ADDRESS_OF.
5493
5494 2016-02-16 Alan Modra <amodra@gmail.com>
5495
5496 PR target/68973
5497 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
5498 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
5499 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
5500 (p8_mtvsrwz): New.
5501 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
5502 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
5503 (p8_fmrgow_<mode>): Likewise.
5504 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
5505 changes.
5506 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
5507 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
5508 to use movdi_internal64. Remove op0_di.
5509 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
5510
5511 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
5512
5513 Add support for the FCCMP insn types
5514
5515 * config/aarch64/aarch64.md (fccmp): Change insn type.
5516 (fccmpe): Likewise.
5517 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
5518 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
5519 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
5520 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
5521 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
5522 * config/arm/types.md (fccmps): Add new insn type.
5523 (fccmpd): Likewise.
5524
5525 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5526
5527 * alias.c (get_alias_set): Fix a typo in comment.
5528
5529 2016-02-15 Richard Biener <rguenther@suse.de>
5530
5531 PR tree-optimization/69595
5532 * match.pd: Complete range test simplification to true.
5533
5534 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
5535
5536 PR rtl-optimization/69648
5537 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
5538 pic_offset_table_rtx.
5539
5540 PR rtl-optimization/69752
5541 * ira.c (update_equiv_regs): When looking for more than a single SET,
5542 also take other side effects into account.
5543
5544 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5545
5546 * config/s390/s390.c (s390_function_profiler): Add a new sequence
5547 for z900+ CPUs in 31-bit mode.
5548
5549 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5550
5551 * common/config/s390/s390-common.c (s390_supports_split_stack):
5552 New function.
5553 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
5554 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
5555 * config/s390/s390.c (struct machine_function): New field
5556 split_stack_varargs_pointer.
5557 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
5558 in s390_emit_prologue.
5559 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
5560 vararg pointer.
5561 (morestack_ref): New global.
5562 (SPLIT_STACK_AVAILABLE): New macro.
5563 (s390_expand_split_stack_prologue): New function.
5564 (s390_live_on_entry): New function.
5565 (s390_va_start): Use split-stack vararg pointer if appropriate.
5566 (s390_asm_file_end): Emit the split-stack note sections.
5567 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
5568 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
5569 (UNSPECV_SPLIT_STACK_CALL): New unspec.
5570 (UNSPECV_SPLIT_STACK_DATA): New unspec.
5571 (split_stack_prologue): New expand.
5572 (split_stack_space_check): New expand.
5573 (split_stack_data): New insn.
5574 (split_stack_call): New expand.
5575 (split_stack_call_*): New insn.
5576 (split_stack_cond_call): New expand.
5577 (split_stack_cond_call_*): New insn.
5578
5579 2016-02-15 Richard Biener <rguenther@suse.de>
5580
5581 PR tree-optimization/69783
5582 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5583 Add trivially correct cases.
5584
5585 2016-02-15 Tom de Vries <tom@codesourcery.com>
5586
5587 PR lto/69655
5588 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
5589 do_force_output.
5590 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
5591
5592 2016-02-15 Richard Biener <rguenther@suse.de>
5593
5594 PR tree-optimization/69776
5595 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5596 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
5597 indicate whether we can use TBAA to disambiguate against stores.
5598 Use alias-set zero if not.
5599 (visit_reference_op_store): Do not use TBAA when looking up
5600 redundant stores.
5601 * tree-ssa-pre.c (compute_avail): Use TBAA here.
5602 (eliminate_dom_walker::before_dom_children): But not when looking
5603 up redundant stores.
5604
5605 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
5606
5607 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
5608
5609 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5610
5611 * config/i386/znver1.md
5612 (znver1_pop, znver1_pop_mem,
5613 znver1_load_imov_double_store,
5614 znver1_load_imov_direct_store,
5615 znver1_load_imov_direct_load,
5616 znver1_load_imov_double_load): Add new.
5617 (znver1_insn, znver1_insn_load): Add icmov type.
5618 (znver1_sseavx_fma,
5619 znver1_sseavx_fma_load,
5620 znver1_avx256_fma,
5621 znver1_avx256_fma_load): Fix pipe usage.
5622
5623 2016-02-14 Alan Modra <amodra@gmail.com>
5624
5625 PR target/68973
5626 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
5627 with an invalid hard reg, reload just the reg not the entire
5628 pre/post-inc/dec address expression.
5629
5630 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5631
5632 PR target/67260
5633 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
5634 fixed R1_REG scratch reg.
5635 (sibcall_value_pcrel_fdpic): Likewise.
5636
5637 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5638
5639 PR target/67636
5640 PR target/64345
5641 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
5642
5643 2016-02-12 Walter Lee <walt@tilera.com>
5644
5645 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
5646 * config/tilegx/t-tilegx: Likewise.
5647
5648 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5649
5650 PR other/69554
5651 * diagnostic-show-locus.c (struct line_span): New struct.
5652 (layout::get_first_line): Delete.
5653 (layout::get_last_line): Delete.
5654 (layout::get_num_line_spans): New member function.
5655 (layout::get_line_span): Likewise.
5656 (layout::print_heading_for_line_span_index_p): Likewise.
5657 (layout::get_expanded_location): Likewise.
5658 (layout::calculate_line_spans): Likewise.
5659 (layout::m_first_line): Delete.
5660 (layout::m_last_line): Delete.
5661 (layout::m_line_spans): New field.
5662 (layout::layout): Update comment. Replace m_first_line and
5663 m_last_line with m_line_spans, replacing their initialization
5664 with a call to calculate_line_spans.
5665 (diagnostic_show_locus): When printing source lines and
5666 annotations, rather than looping over a single span
5667 of lines, instead loop over each line_span within
5668 the layout, with an inner loop over the lines within them.
5669 Call the context's start_span callback when changing line spans.
5670 * diagnostic.c (diagnostic_initialize): Initialize start_span.
5671 (diagnostic_build_prefix): Break out the building of the location
5672 part of the string into...
5673 (diagnostic_get_location_text): ...this new function, rewriting
5674 it from nested ternary expressions to a sequence of "if"
5675 statements.
5676 (default_diagnostic_start_span_fn): New function.
5677 * diagnostic.h (diagnostic_start_span_fn): New typedef.
5678 (diagnostic_context::start_span): New field.
5679 (default_diagnostic_start_span_fn): New prototype.
5680
5681 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5682
5683 PR driver/69779
5684 * gcc.c (driver::finalize): Fix cleanup of "specs".
5685
5686 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5687
5688 PR driver/69265
5689 PR driver/69453
5690 * gcc.c (driver::driver): Initialize m_option_suggestions.
5691 (driver::~driver): Clean up m_option_suggestions.
5692 (suggest_option): Convert to...
5693 (driver::suggest_option): ...this, and split out into
5694 driver::build_option_suggestions and find_closest_string.
5695 (driver::build_option_suggestions): New function, from
5696 first half of suggest_option. Special-case
5697 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
5698 the sanitizer_opts array. For options of enum types, add the
5699 various enum values to the candidate strings.
5700 (driver::handle_unrecognized_options): Remove "const".
5701 * gcc.h (driver::handle_unrecognized_options): Likewise.
5702 (driver::build_option_suggestions): New decl.
5703 (driver::suggest_option): New decl.
5704 (driver::m_option_suggestions): New field.
5705 * opts-common.c (add_misspelling_candidates): New function.
5706 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
5707 and make non-static.
5708 * opts.h (sanitizer_opts): New array decl.
5709 (add_misspelling_candidates): New function decl.
5710 * spellcheck.c (find_closest_string): New function.
5711 * spellcheck.h (find_closest_string): New function decl.
5712
5713 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5714
5715 PR rtl-optimization/69764
5716 PR rtl-optimization/69771
5717 * optabs.c (expand_binop_directly): For shift_optab_p, force
5718 convert_modes with VOIDmode if xop1 has VOIDmode.
5719
5720 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5721
5722 PR target/69729
5723 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
5724 to correctly determine instrumentation thunks.
5725
5726 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5727
5728 PR ipa/69241
5729 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
5730 type by reference, force lhs on the call.
5731
5732 PR ipa/68672
5733 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
5734 Compute retval and retbnd early in all cases if split_part_return_p
5735 and return_bb is not EXIT. Remove all clobber stmts and reset
5736 all debug stmts that refer to SSA_NAMEs defined in split part,
5737 except if it is retval, in that case replace the old retval with the
5738 lhs of the call to the split part.
5739
5740 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5741
5742 revert:
5743 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5744
5745 PR middle-end/66726
5746 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5747 whose result is used in PHI.
5748 (maybe_optimize_range_tests): Likewise.
5749 (final_range_test_p): Likweise.
5750
5751 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5752
5753 PR middle-end/66726
5754 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5755 whose result is used in PHI.
5756 (maybe_optimize_range_tests): Likewise.
5757 (final_range_test_p): Likweise.
5758
5759 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5760
5761 * cgraph.c: Spelling fixes - behaviour -> behavior and
5762 neighbour -> neighbor.
5763 * target.def: Likewise.
5764 * sel-sched.c: Likewise.
5765 * config/mips/mips.c: Likewise.
5766 * config/arc/arc.md: Likewise.
5767 * config/arm/cortex-a57.md: Likewise.
5768 * config/arm/arm.c: Likewise.
5769 * config/arm/neon.md: Likewise.
5770 * config/arm/arm-c.c: Likewise.
5771 * config/vms/vms-c.c: Likewise.
5772 * config/s390/s390.c: Likewise.
5773 * config/i386/znver1.md: Likewise.
5774 * config/i386/i386.c: Likewise.
5775 * config/ia64/hpux-unix2003.h: Likewise.
5776 * config/msp430/msp430.md: Likewise.
5777 * config/rx/rx.c: Likewise.
5778 * config/rx/rx.md: Likewise.
5779 * config/aarch64/aarch64-simd.md: Likewise.
5780 * config/aarch64/aarch64.c: Likewise.
5781 * config/nvptx/nvptx.c: Likewise.
5782 * config/bfin/bfin.c: Likewise.
5783 * config/cris/cris.opt: Likewise.
5784 * config/rs6000/rs6000.c: Likewise.
5785 * target.h: Likewise.
5786 * spellcheck.c: Likewise.
5787 * ira-build.c: Likewise.
5788 * tree-inline.c: Likewise.
5789 * builtins.c: Likewise.
5790 * lra-constraints.c: Likewise.
5791 * explow.c: Likewise.
5792 * hwint.h: Likewise.
5793 * targhooks.c: Likewise.
5794 * tree-vect-data-refs.c: Likewise.
5795 * expr.c: Likewise.
5796 * doc/tm.texi: Likewise.
5797 * doc/extend.texi: Likewise.
5798 * doc/install.texi: Likewise.
5799 * doc/md.texi: Likewise.
5800 * tree-ssa-tail-merge.c: Likewise.
5801 * sched-int.h: Likewise.
5802 * match.pd: Likewise.
5803 * sched-ebb.c: Likewise.
5804 * target.def (omit_struct_return_reg): Likewise.
5805 * gimple-ssa-isolate-paths.c: Likewise.
5806 (find_implicit_erroneous_behaviour): Renamed to...
5807 (find_implicit_erroneous_behavior): ... this.
5808 (find_explicit_erroneous_behaviour): Renamed to...
5809 (find_explicit_erroneous_behavior): ... this.
5810 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
5811
5812 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
5813
5814 PR rtl-optimization/64682
5815 PR rtl-optimization/69567
5816 PR rtl-optimization/69737
5817 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
5818 in I2 as well, just lose it.
5819
5820 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5821
5822 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
5823 New variable.
5824 (aarch64_last_printed_tune_string): Likewise.
5825 (aarch64_declare_function_name): Only output .arch assembler
5826 directive if it will be different from the previously output
5827 directive. Same for .tune comment but only if -dA is set.
5828 (aarch64_start_file): New function.
5829 (TARGET_ASM_FILE_START): Define.
5830
5831 2016-02-11 David Malcolm <dmalcolm@redhat.com>
5832
5833 PR plugins/69758
5834 * Makefile.in (PLUGIN_HEADERS): Add params.list.
5835
5836 2016-02-11 Jakub Jelinek <jakub@redhat.com>
5837
5838 PR target/65313
5839 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
5840 -Wmaybe-uninitialized warning.
5841
5842 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
5843
5844 PR target/69713
5845 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
5846
5847 2016-02-11 Richard Biener <rguenther@suse.de>
5848
5849 PR rtl-optimization/69291
5850 * ifcvt.c (noce_try_store_flag_constants): Do not allow
5851 subexpressions affected by changing the result.
5852
5853 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
5854
5855 PR target/69148
5856 * lra-constraints.c (curr_insn_transform): Find in/out operands
5857 for secondary memory moves. Update dups.
5858
5859 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
5860
5861 PR tree-optimization/69652
5862 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
5863 to nested loop, did source re-formatting, skip debug statements,
5864 add check on statement with volatile operand, remove dead scalar
5865 statements.
5866
5867 2016-02-10 Jakub Jelinek <jakub@redhat.com>
5868 Patrick Palka <ppalka@gcc.gnu.org>
5869
5870 PR ipa/69241
5871 PR c++/69649
5872 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
5873 calls if the return type is TREE_ADDRESSABLE.
5874 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
5875 * ipa-split.c (split_function): Fix doubled "we" in comment.
5876 Use void return type for the split part even if
5877 !split_point->split_part_set_retval.
5878
5879 2016-02-10 Bin Cheng <bin.cheng@arm.com>
5880
5881 PR tree-optimization/68021
5882 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
5883 when computing the value of biv cand by itself.
5884
5885 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5886
5887 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
5888 (cortexa57_tunings): Likewise.
5889 (cortexa72_tunings): Likewise.
5890 (arch_macro_fusion_pair_p): Add support for AES fusion.
5891 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
5892 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5893 Allow virtual registers before reload so early scheduling works.
5894 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
5895 correct latency and pipeline.
5896 (cortex_a57_crypto_complex): Likewise.
5897 (cortex_a57_crypto_xor): Likewise.
5898 (define_bypass): Add AES bypass.
5899
5900 2016-02-10 Richard Biener <rguenther@suse.de>
5901
5902 PR tree-optimization/69726
5903 * passes.def: Add DCE pass before late uninit.
5904 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
5905 really fixup if-conversions job.
5906
5907 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5908
5909 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
5910 (arm_cortex_a57_tune): Likewise.
5911 (aarch_macro_fusion_pair_p): Add support for AES fusion.
5912 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
5913
5914 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
5915
5916 * timevar.def (TV_PHASE_DBGINFO): Delete.
5917 (TV_PHASE_CHECK_DBGINFO): Likewise.
5918 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
5919
5920 2016-02-10 Richard Biener <rguenther@suse.de>
5921
5922 PR tree-optimization/69719
5923 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5924 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
5925
5926 2016-02-09 Andrew Pinski <apinski@cavium.com>
5927
5928 PR tree-opt/69282
5929 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
5930 get_vcond_mask_icode returns false.
5931
5932 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5933
5934 PR target/68404
5935 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
5936 an ADDIS that adds a pointer to a large constant that sets the
5937 upper16 bits with a load operation.
5938
5939 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5940
5941 PR target/68532
5942 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
5943 order.
5944 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
5945 endian.
5946 (vzipq_s16): Likewise.
5947 (vzipq_s32): Likewise.
5948 (vzipq_f32): Likewise.
5949 (vzipq_u8): Likewise.
5950 (vzipq_u16): Likewise.
5951 (vzipq_u32): Likewise.
5952 (vzipq_p8): Likewise.
5953 (vzipq_p16): Likewise.
5954
5955 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5956
5957 PR target/68532
5958 * config/arm/arm.c (neon_endian_lane_map): New function.
5959 (neon_vector_pair_endian_lane_map): New function.
5960 (arm_evpc_neon_vuzp): Allow for big endian lane order.
5961 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
5962 endian.
5963 (vuzpq_s16): Likewise.
5964 (vuzpq_s32): Likewise.
5965 (vuzpq_f32): Likewise.
5966 (vuzpq_u8): Likewise.
5967 (vuzpq_u16): Likewise.
5968 (vuzpq_u32): Likewise.
5969 (vuzpq_p8): Likewise.
5970 (vuzpq_p16): Likewise.
5971
5972 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
5973
5974 PR target/69634
5975 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
5976 debug insns.
5977
5978 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
5979
5980 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
5981 truncate const_int operand 1 to QImode.
5982
5983 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
5984
5985 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
5986 corresponding to an abnormal edge.
5987
5988 2016-02-09 Tom de Vries <tom@codesourcery.com>
5989
5990 PR tree-optimization/69599
5991 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
5992 function.
5993 (find_func_aliases_for_builtin_call, find_func_clobbers)
5994 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
5995 partition.
5996
5997 2016-02-09 Richard Biener <rguenther@suse.de>
5998
5999 PR tree-optimization/69715
6000 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
6001 LHS on calls as non-rewritable.
6002
6003 2016-02-09 Tom de Vries <tom@codesourcery.com>
6004
6005 PR lto/69707
6006 * lto-wrapper.c (append_diag_options): New function.
6007 (compile_offload_image): Call append_diag_options.
6008
6009 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
6010
6011 PR other/69722
6012 * doc/extend.texi (Flag Output Operands): Correct sectioning.
6013 Minor copy-edit to fix verb tenses.
6014
6015 2016-02-08 Jakub Jelinek <jakub@redhat.com>
6016
6017 PR tree-optimization/69209
6018 * ipa-split.c (split_function): If split part is not
6019 returning retval, retval has gimple type but is not
6020 gimple value, force it into a SSA_NAME first.
6021
6022 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
6023
6024 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
6025 outdated section.
6026
6027 2016-02-08 Jason Merrill <jason@redhat.com>
6028
6029 PR c++/69631
6030 * convert.c (convert_to_integer_1): Check dofold on truncation
6031 distribution.
6032 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
6033 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
6034 Rename from *_nofold.
6035 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
6036 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
6037
6038 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
6039
6040 PR target/60410
6041 * tree.c (build_common_tree_nodes): Remove short_double argument.
6042 All callers changed.
6043 * tree.h (build_common_tree_nodes): Adjust declaration.
6044 * doc/invoke.texi (-fshort-double): Remove documentation.
6045 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6046 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
6047 * lto-wrapper.c (merge_and_complain, append_compiler_options)
6048 (append_linker_options): Don't handle OPT_fshort_double.
6049
6050 PR rtl-optimization/68730
6051 * lra-remat.c (insn_to_cand_activation): New static variable.
6052 (lra_remat): Allocate and free it.
6053 (create_cand): New arg activation. Initialize a field in
6054 insn_to_cand_activation if it is nonnull.
6055 (create_cands): Pass the activation insn to create_cand when making
6056 a candidate involving an output reload. Reorganize code a little.
6057 (do_remat): Keep track of active status of candidates in a separate
6058 bitmap.
6059
6060 2016-02-08 Richard Biener <rguenther@suse.de>
6061
6062 PR tree-optimization/69719
6063 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6064 Properly use absolute of the difference of the two offsets to
6065 compare or adjust the segment length.
6066
6067 2016-02-08 Richard Biener <rguenther@suse.de>
6068 Jeff Law <law@redhat.com>
6069
6070 PR target/68273
6071 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
6072 types for anonymous SSA names.
6073
6074 2016-02-08 Richard Biener <rguenther@suse.de>
6075
6076 PR rtl-optimization/69274
6077 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
6078
6079 2016-02-08 Jeff Law <law@redhat.com>
6080
6081 PR tree-optimization/65917
6082 * tree-ssa-dom.c (record_temporary_equivalences): Record both
6083 equivalences from if (x == y) style conditionals.
6084 (loop_depth_of_name): Remove.
6085 (record_equality): Remove loop depth check.
6086 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
6087 (const_and_copies::record_const_or_copy_raw): New member function.
6088 * tree-ssa-scopedtables.c
6089 (const_and_copies::record_const_or_copy_raw): New, factored out of
6090 (const_and_copies::record_const_or_copy): Call new member function.
6091
6092 2016-02-05 Jeff Law <law@redhat.com>
6093
6094 PR tree-optimization/68541
6095 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
6096 (count_stmts_in_block): New function.
6097 (poor_ifcvt_candidate_code): Likewise.
6098 (is_feasible_trace): Add some heuristics to determine when path
6099 splitting is profitable.
6100 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
6101 is a diamond with a single exit.
6102
6103 2016-02-05 Martin Sebor <msebor@redhat.com>
6104
6105 PR c++/69662
6106 * doc/invoke.texi: Update -Wplacement-new to take an optional
6107 argument.
6108
6109 2016-02-06 Richard Henderson <rth@redhat.com>
6110
6111 PR c/69643
6112 * tree.c (tree_nop_conversion_p): Do not strip casts into or
6113 out of non-standard address spaces.
6114
6115 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6116
6117 PR rtl-optimization/69691
6118 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
6119
6120 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
6121
6122 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
6123 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
6124 (*ieee128_mfvsrd_64bit): Likewise.
6125 (*ieee128_mfvsrd_32bit): Likewise.
6126
6127 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6128
6129 PR target/69369
6130 Revert r232560:
6131 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6132
6133 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
6134 instrumented_version.
6135
6136 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
6137
6138 * doc/invoke.texi (Optimize Options): In table of --param options
6139 rename second occurrence of tracer-min-branch-ratio to
6140 tracer-min-branch-probability, rename
6141 tracer-min-branch-ratio-feedback to
6142 tracer-min-branch-probability-feedback and clarify description,
6143 rename sched-spec-state-edge-prob-cutoff to
6144 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
6145 to selsched-insns-to-rename, rename lto-minpartition to
6146 lto-min-partition, delete reorder-blocks-duplicate and
6147 reorder-blocks-duplicate-feedback.
6148
6149 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6150
6151 * config/s390/s390.c (s390_register_info_set_ranges): Remove
6152 superfluous loops.
6153
6154 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
6155
6156 * doc/extend.texi: S/390: Correct some typos.
6157
6158 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6159
6160 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
6161
6162 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6163
6164 PR target/69625
6165 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
6166 (s390_register_info_gprtofpr): Use new macros above.
6167 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
6168 its name.
6169 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
6170 its name. Adjust restore and save gpr ranges.
6171 (s390_register_info_set_ranges): New function.
6172 (s390_register_info): Use new macros above. Call
6173 s390_register_info_set_ranges.
6174 (s390_optimize_register_info): Likewise.
6175 (s390_hard_regno_rename_ok): Use new macros.
6176 (s390_hard_regno_scratch_ok): Likewise.
6177 (s390_emit_epilogue): Likewise.
6178 (s390_can_use_return_insn): Likewise.
6179 (s390_optimize_prologue): Likewise.
6180 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
6181
6182 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6183
6184 PR bootstrap/69677
6185 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
6186 alignment fixes.
6187 (ix86_option_override_internal): Disable TARGET_STV even for
6188 -m{incoming,preferred}-stack-boundary=3.
6189
6190 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6191
6192 * config.gcc: Mark deprecated rtems targets as obsolete.
6193
6194 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
6195
6196 PR rtl-optimization/64682
6197 PR rtl-optimization/69567
6198 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
6199 before I2 only if the register is both used and set in I2.
6200
6201 2016-02-04 DJ Delorie <dj@redhat.com>
6202
6203 * config/msp430/msp430.c (msp430_start_function): Add function type.
6204
6205 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6206
6207 PR fortran/69368
6208 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
6209
6210 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
6211
6212 PR rtl-optimization/69577
6213 Revert:
6214 2015-10-29 Richard Henderson <rth@redhat.com>
6215
6216 PR target/68124
6217 PR rtl-opt/67609
6218 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6219 sse check to the exact conditions of PR 67609.
6220
6221 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
6222
6223 PR target/69667
6224 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
6225 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
6226 not allowed into the traditional Altivec registers.
6227 (movtd_64bit_nodm): Likewise.
6228 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6229
6230 2016-02-04 David Malcolm <dmalcolm@redhat.com>
6231
6232 * config/aarch64/cortex-a57-fma-steering.c
6233 (aarch64_register_fma_steering): Remove "static" from arguments
6234 to register_pass.
6235
6236 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
6237
6238 PR target/69619
6239 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
6240 twice when complex.
6241
6242 2016-02-04 Mike Frysinger <vapier@gentoo.org>
6243
6244 * doc/invoke.texi: Delete -mno-fma4.
6245
6246 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
6247
6248 PR rtl-optimization/69577
6249 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
6250 (find_subregs_of_mode): Update accordingly. Iterate over partial
6251 definitions.
6252
6253 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
6254
6255 * config/arm/arm-protos.h (neon_reinterpret): Remove.
6256 * config/arm/arm.c (neon_reinterpret): Remove.
6257 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
6258 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
6259 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
6260 vreinterpretti): Remove.
6261 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
6262 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6263 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
6264 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
6265 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
6266 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
6267 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
6268 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
6269 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
6270 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
6271 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
6272 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
6273 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
6274 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
6275 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
6276 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
6277 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
6278 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
6279 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
6280 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
6281 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
6282 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
6283 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
6284 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
6285 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
6286 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
6287 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
6288 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
6289 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
6290 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
6291 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
6292 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
6293 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
6294 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
6295 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
6296 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
6297 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
6298 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
6299 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
6300 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
6301 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
6302 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
6303 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
6304 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
6305 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
6306 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
6307 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
6308 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
6309 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
6310 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
6311 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
6312 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
6313 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
6314 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
6315 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
6316 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
6317 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
6318 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
6319 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
6320 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
6321 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
6322 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
6323 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
6324 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
6325 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
6326 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
6327 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
6328 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
6329 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
6330 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
6331 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
6332 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
6333 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
6334 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
6335 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
6336 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
6337 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
6338 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
6339 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
6340 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
6341 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
6342 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
6343 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
6344 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
6345 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
6346 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
6347 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
6348 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
6349 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
6350 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
6351 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
6352 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
6353 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
6354 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
6355 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
6356 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
6357 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
6358 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
6359 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
6360 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
6361 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
6362 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
6363 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
6364
6365 2016-02-04 Martin Liska <mliska@suse.cz>
6366
6367 PR sanitizer/69276
6368 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
6369 that are gimple_store_p.
6370 (maybe_instrument_call): Likewise.
6371
6372 2016-02-04 Bin Cheng <bin.cheng@arm.com>
6373
6374 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
6375 register scaling out of memory reference and comment why.
6376
6377 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6378
6379 PR target/65932
6380 PR target/67714
6381 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
6382 folding the source of a SET.
6383
6384 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6385
6386 PR target/65932
6387 PR target/67714
6388 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
6389 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
6390
6391 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
6392
6393 PR target/65932
6394 PR target/67714
6395 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
6396 HImode.
6397
6398 2016-02-04 Christian Bruel <christian.bruel@st.com>
6399
6400 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
6401 * config/arm/arm.c (arm_set_current_function): Likewise.
6402
6403 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6404 Ilya Enkovich <enkovich.gnu@gmail.com>
6405 H.J. Lu <hongjiu.lu@intel.com>
6406
6407 PR target/69454
6408 * config/i386/i386.c (convert_scalars_to_vector): Remove
6409 stack alignment fixes.
6410 (ix86_option_override_internal): Disable TARGET_STV if stack
6411 might not be aligned enough.
6412 (ix86_minimum_alignment): Assert that TARGET_STV is false.
6413
6414 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
6415
6416 * gcc/config/i386/x86-tune.def: Disable default prefetching
6417 for -march=znver1.
6418
6419 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6420 Vladimir Makarov <vmakarov@redhat.com>
6421
6422 PR target/69461
6423 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
6424 in validating fused toc addresses.
6425
6426 2016-02-03 Jakub Jelinek <jakub@redhat.com>
6427
6428 PR c/69627
6429 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
6430 range->m_caret fields if range->m_show_caret_p is false.
6431
6432 PR target/69644
6433 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6434 Force oldval into register if it does not satisfy reg_or_short_operand
6435 predicate. Fix up formatting.
6436
6437 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
6438 Alexandre Oliva <aoliva@redhat.com>
6439
6440 PR target/69461
6441 * lra-constraints.c (simplify_operand_subreg): Check additionally
6442 address validity after potential reloading.
6443 (process_address_1): Check insns validity. In case of failure do
6444 nothing.
6445
6446 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
6447
6448 PR target/69118
6449 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
6450 Fix target.
6451
6452 2016-02-02 Jakub Jelinek <jakub@redhat.com>
6453
6454 * wide-int.cc (canonize_uhwi): New function.
6455 (wi::divmod_internal): Use it.
6456
6457 2016-02-02 James Norris <jnorris@codesourcery.com
6458
6459 * gimplify.c (omp_notice_variable): Add usage check.
6460
6461 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6462
6463 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
6464 like LE, GE, LT, GT when emitting relational operator.
6465
6466 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6467
6468 * ira-costs.c (find_costs_and_classes): Add extra argument.
6469 * target.def (ira_change_pseudo_allocno_class): Add parameter.
6470 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
6471 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
6472 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
6473 Add best_class parameter, and return it if not ALL_REGS.
6474 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
6475 Add parameter.
6476 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
6477 Update target hook.
6478
6479 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6480
6481 * config/aarch64/aarch64.c
6482 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
6483 (aarch64_ira_change_pseudo_allocno_class): New function.
6484
6485 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
6486
6487 PR target/67032
6488 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
6489
6490 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6491
6492 * config/avr/avr.c (avr_option_override): Set
6493 PARAM_ALLOW_STORE_DATA_RACES to 1.
6494
6495 2016-02-02 Richard Biener <rguenther@suse.de>
6496
6497 PR tree-optimization/69595
6498 * match.pd: Add range test simplifications to true/false.
6499
6500 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6501
6502 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
6503 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
6504 instead.
6505
6506 2016-02-02 Richard Biener <rguenther@suse.de>
6507
6508 PR tree-optimization/69606
6509 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
6510 info on the result before moving a stmt.
6511
6512 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
6513
6514 PR middle-end/68542
6515 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
6516 branch with vector comparison.
6517 * config/i386/sse.md (VI48_AVX): New mode iterator.
6518 (define_expand "cbranch<mode>4): Add support for conditional branch
6519 with vector comparison.
6520 * tree-vect-loop.c (optimize_mask_stores): New function.
6521 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
6522 has_mask_store field of vect_info.
6523 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
6524 vectorized loops having masked stores after vec_info destroy.
6525 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
6526 correspondent macros.
6527 (optimize_mask_stores): Add prototype.
6528
6529 2016-02-02 Alan Modra <amodra@gmail.com>
6530
6531 PR target/69548
6532 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
6533 allow subregs.
6534
6535 2016-02-02 Alan Modra <amodra@gmail.com>
6536
6537 PR target/68662
6538 * config/rs6000/rs6000.c (need_toc_init): New var, set it
6539 whenever toc_label_name used.
6540 (rs6000_file_start): Don't set up toc section here,
6541 (rs6000_output_function_epilogue): do so here instead,
6542 (rs6000_xcoff_file_start): and here.
6543 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
6544 (load_toc_aix_di): Likewise.
6545
6546 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6547
6548 PR rtl-optimization/69592
6549 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
6550 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
6551 (num_sign_bit_copies_binary_arith_p): New inline function.
6552 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
6553
6554 2016-02-01 Jeff Law <law@redhat.com>
6555
6556 PR tree-optimization/69580
6557 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
6558 * tree-ssa-threadbackward.c
6559 (fsm_find_control_statement_thread_paths): Do not try to walk
6560 through large PHI nodes.
6561
6562 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6563
6564 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
6565 when count is incremented above limit, don't analyze further
6566 insns afterwards.
6567
6568 * omp-low.c (oacc_parse_default_dims): Avoid
6569 -Wsign-compare warning, make sure value fits into int
6570 rather than just unsigned int.
6571
6572 2016-02-01 Bin Cheng <bin.cheng@arm.com>
6573
6574 PR tree-optimization/67921
6575 * fold-const.c (split_tree): New parameters. Convert pointer
6576 type variable part to proper type before negating.
6577 (fold_binary_loc): Pass new arguments to split_tree.
6578
6579 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6580
6581 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
6582 (nvptx_goacc_validate_dims): Extend to handle global defaults.
6583 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
6584 * doc/tm.texti: Rebuilt.
6585 * doc/invoke.texi (fopenacc-dim): Document.
6586 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
6587 (append_compiler_options): Likewise.
6588 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
6589 (oacc_parse_default_dims): New.
6590 (oacc_validate_dims): Add USED arg. Select non-unity default when
6591 possible.
6592 (oacc_loop_fixed_partitions): Return mask of used partitions.
6593 (oacc_loop_auto_partitions): Emit dump info.
6594 (oacc_loop_partition): Return mask of used partitions.
6595 (execute_oacc_device_lower): Parse default dimension arg. Adjust
6596 loop partitioning and validation calls.
6597
6598 2016-02-01 Richard Biener <rguenther@suse.de>
6599
6600 PR middle-end/69556
6601 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
6602
6603 2016-02-01 Richard Biener <rguenther@suse.de>
6604
6605 PR tree-optimization/69574
6606 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
6607 of asserting return chrec_dont_know.
6608
6609 2016-02-01 Martin Liska <mliska@suse.cz>
6610
6611 * mem-stats-traits.h: Add copyright header.
6612 * mem-stats.h: Likewise.
6613
6614 2016-02-01 Richard Biener <rguenther@suse.de>
6615
6616 PR tree-optimization/69579
6617 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
6618 Do not propagate through abnormal PHI results.
6619
6620 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
6621
6622 * postreload.c (reload_cse_simplify): Remove dead code.
6623
6624 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6625
6626 PR rtl-optimization/69570
6627 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
6628 if there is more than one set, not if there is a single set.
6629
6630 2016-02-01 Richard Henderson <rth@redhat.com>
6631
6632 PR rtl-opt/69535
6633 * combine.c (make_compound_operation): When looking through a
6634 subreg, make sure to re-extend to the width of the outer mode.
6635
6636 2016-01-30 Jakub Jelinek <jakub@redhat.com>
6637
6638 PR tree-optimization/69546
6639 * wide-int.cc (wi::divmod_internal): For unsigned division
6640 where both operands fit into uhwi, if o1 is 1 and o0 has
6641 msb set, if divident_prec is larger than bits per hwi,
6642 clear another quotient word and return 2 instead of 1.
6643 Similarly for remainder with msb in HWI set, if dividend_prec
6644 is larger than bits per hwi.
6645
6646 2016-01-29 Martin Jambor <mjambor@suse.cz>
6647
6648 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
6649 Use short lowercase names.
6650 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
6651 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
6652 acq_rel one. Protect warning agains segfaults if
6653 get_memory_order_name returns NULL.
6654 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
6655 with release semantics. Do not warn if get_memory_order already did.
6656 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
6657 semantics. Fix check for relaxed or acquire semantics. Do not warn
6658 if get_memory_order already did.
6659
6660 2016-01-29 Sebastian Pop <s.pop@samsung.com>
6661
6662 * doc/install.texi: Document that isl-0.16 is supported.
6663
6664 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
6665
6666 PR target/69299
6667 * config/i386/constraints.md (Bm): Describe as special memory
6668 constraint.
6669 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
6670 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6671 * genpreds.c (struct constraint_data): Add is_special_memory.
6672 (have_special_memory_constraints, special_memory_start): New
6673 static vars.
6674 (special_memory_end): Ditto.
6675 (add_constraint): Add new arg is_special_memory. Add code to
6676 process its true value. Update have_special_memory_constraints.
6677 (process_define_constraint): Pass the new arg.
6678 (process_define_register_constraint): Ditto.
6679 (choose_enum_order): Process special memory.
6680 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
6681 function insn_extra_special_memory_constraint.
6682 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6683 * gensupport.c (process_rtx): Process
6684 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6685 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
6686 * ira-lives.c (single_reg_class): Use
6687 insn_extra_special_memory_constraint.
6688 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
6689 * lra-constraints.c (process_alt_operands): Ditto.
6690 (curr_insn_transform): Use insn_extra_special_memory_constraint.
6691 * recog.c (asm_operand_ok, preprocess_constraints): Process
6692 CT_SPECIAL_MEMORY.
6693 * reload.c (find_reloads): Ditto.
6694 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
6695 * stmt.c (parse_input_constraint): Use
6696 insn_extra_special_memory_constraint.
6697
6698 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
6699
6700 PR target/69530
6701 * lra-splill.c (lra_final_code_change): Revert r229087 by
6702 removing all sub-registers.
6703
6704 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
6705
6706 PR target/65604
6707 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
6708
6709 2016-01-29 Jakub Jelinek <jakub@redhat.com>
6710
6711 PR target/69551
6712 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
6713 SSE1, copy target into the temporary reg first before recursing
6714 on it.
6715
6716 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
6717
6718 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
6719 with vm.
6720
6721 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
6722
6723 * ginclude/stdarg.h: Test __cplusplus instead of
6724 __GXX_EXPERIMENTAL_CXX0X__.
6725
6726 2016-01-29 Richard Biener <rguenther@suse.de>
6727
6728 PR tree-optimization/69547
6729 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
6730 Do not mark clobbers necessary.
6731 (mark_all_reaching_defs_necessary_1): Likewise.
6732
6733 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6734
6735 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
6736 declaration name with %qs and print it in both error messages.
6737 Also fix indentation.
6738
6739 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6740
6741 PR other/69006
6742 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
6743 trailing blank line from error message.
6744
6745 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
6746
6747 PR c++/69462
6748 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
6749 for C++-11.
6750
6751 2016-01-29 Richard Biener <rguenther@suse.de>
6752
6753 PR middle-end/69537
6754 * match.pd: Allow all integral types when simplifying a
6755 widening or sign-changing conversion.
6756
6757 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6758
6759 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
6760 back to setting codegen_error to fail codegen.
6761
6762 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
6763
6764 PR target/69459
6765 * config/i386/constraints.md (C): Only accept constant zero operand.
6766 (BC): New constraint.
6767 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
6768 instead of C constraint.
6769 * doc/md.texi (Machine Constraints): Update description
6770 of C constraint.
6771
6772 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
6773
6774 PR target/68400
6775 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
6776
6777 2016-01-28 Jakub Jelinek <jakub@redhat.com>
6778
6779 PR middle-end/69542
6780 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
6781 non-debug insns.
6782
6783 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
6784
6785 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
6786 branches if using guessed profile.
6787
6788 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
6789
6790 * graphite-optimize-isl.c (optimize_isl): Fix dump.
6791
6792 2016-01-28 Richard Henderson <rth@redhat.com>
6793
6794 PR target/69305
6795 * config/aarch64/aarch64-modes.def (CC_Cmode): New
6796 * config/aarch64/aarch64-protos.h: Update.
6797 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
6798 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
6799 (aarch64_get_condition_code_1): Handle CC_Cmode.
6800 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
6801 (*add<mode>3_compareC_cconly_imm): New.
6802 (*add<mode>3_compareC_cconly): New.
6803 (*add<mode>3_compareC_imm): New.
6804 (add<mode>3_compareC): New.
6805 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
6806 to be first. Use aarch64_carry_operation.
6807 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
6808 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
6809 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
6810 (subti3): Use subdi3_compare1.
6811 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
6812 (sub<mode>3_compare1): New.
6813 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
6814 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
6815 (*subsi3_carryin_uxtw): Likewise.
6816 (*ngc<mode>, *ngcsi_uxtw): Likewise.
6817 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
6818 * config/aarch64/iterators.md (DWI): New.
6819 * config/aarch64/predicates.md (aarch64_carry_operation): New.
6820 (aarch64_borrow_operation): New.
6821
6822 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6823
6824 * graphite-optimize-isl.c (optimize_isl): Print a different debug
6825 message when isl does not return a valid schedule.
6826
6827 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6828
6829 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6830 Remove comments from class declarations: they are already in the code
6831 close by the defs.
6832
6833 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6834
6835 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
6836 codegen_error_p.
6837 (ternary_op_to_tree): Same.
6838 (unary_op_to_tree): Same.
6839 (nary_op_to_tree): Same.
6840 (gcc_expression_from_isl_expr_op): Same.
6841 (gcc_expression_from_isl_expression): Same.
6842 (graphite_create_new_loop): Same.
6843 (graphite_create_new_loop_guard): Same.
6844 (build_iv_mapping): Same.
6845 (graphite_create_new_guard): Same.
6846 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
6847 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
6848
6849 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6850
6851 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
6852 instead of setting codegen_error to fail codegen.
6853
6854 2016-01-28 Jason Merrill <jason@redhat.com>
6855
6856 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
6857
6858 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6859
6860 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
6861 Remove CONST_INT_P check in CCMP cost calculation.
6862
6863 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6864
6865 * config/aarch64/aarch64.c (generic_vector_cost):
6866 Set vec_permute_cost.
6867 (cortexa57_vector_cost): Likewise.
6868 (exynosm1_vector_cost): Likewise.
6869 (xgene1_vector_cost): Likewise.
6870 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
6871 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
6872 Add vec_permute_cost entry.
6873
6874 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6875
6876 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
6877 immediate as %1.
6878 (add<mode>3_compare0): Likewise.
6879 (addsi3_compare0_uxtw): Likewise.
6880 (add<mode>3nr_compare0): Likewise.
6881 (compare_neg<mode>): Likewise.
6882 (<optab><mode>3): Likewise.
6883
6884 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
6885
6886 * tree-vect-stmts.c (vectorizable_comparison): Add
6887 NULL check for vectype.
6888
6889 2016-01-28 Richard Biener <rguenther@suse.de>
6890
6891 PR tree-optimization/69466
6892 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6893 Account for PHIs we couldn't duplicate.
6894
6895 2016-01-28 Martin Liska <mliska@suse.cz>
6896
6897 PR pch/68758
6898 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
6899 instead of ENABLE_VALGRIND_CHECKING.
6900
6901 2016-01-27 Richard Henderson <rth@redhat.com>
6902
6903 PR rtl-opt/69447
6904 * lra-remat.c (subreg_regs): New.
6905 (dump_candidates_and_remat_bb_data): Dump it.
6906 (operand_to_remat): Reject if operand in subreg_regs.
6907 (set_bb_regs): Collect subreg_regs.
6908 (lra_remat): Init and free subreg_regs. Compute
6909 calculate_local_reg_remat_bb_data before create_cands.
6910
6911 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
6912
6913 PR target/68986
6914 * config/i386/i386.c (ix86_update_stack_boundary): Don't
6915 change stack_alignment_needed for __tls_get_addr call.
6916
6917 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
6918
6919 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
6920
6921 2016-01-27 Jeff Law <law@redhat.com>
6922
6923 PR tree-optimization/68398
6924 PR tree-optimization/69196
6925 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
6926 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
6927 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6928 Only count PHIs in the last block in the path. The others will
6929 const/copy propagate away. Add heuristic to allow more irreducible
6930 subloops to be created when it is likely profitable to do so.
6931
6932 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6933 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
6934 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
6935
6936 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6937
6938 PR lto/69254
6939 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
6940 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
6941 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
6942 * tree-streamer-in.c: Include asan.h.
6943 (streamer_get_builtin_tree): For builtins in sanitizer
6944 range call initialize_sanitizer_builtins and retry.
6945
6946 2016-01-27 Ian Lance Taylor <iant@google.com>
6947
6948 * common.opt (fkeep-gc-roots-live): New undocumented option.
6949 * tree-ssa-loop-ivopts.c (add_candidate_1): If
6950 -fkeep-gc-roots-live, skip pointers.
6951 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
6952 NULL.
6953
6954 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
6955
6956 PR target/69512
6957 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
6958 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
6959
6960 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
6961
6962 PR target/68380
6963 * configure.ac: NetBSD provides SSP in its C library.
6964 * configure: Updated.
6965
6966 2016-01-27 Richard Biener <rguenther@suse.de>
6967
6968 PR tree-optimization/69166
6969 * tree-vect-loop.c (vect_is_simple_reduction): Always check
6970 reduction code for commutativity / associativity.
6971
6972 2016-01-27 Martin Jambor <mjambor@suse.cz>
6973
6974 PR tree-optimization/69355
6975 * tree-sra.c (analyze_access_subtree): Correct hole detection when
6976 total_scalarization fails.
6977
6978 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
6979
6980 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
6981 power9.
6982
6983 2016-01-27 Christian Bruel <christian.bruel@st.com>
6984
6985 PR target/69245
6986 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
6987 Move arm_reset_previous_fndecl and set_target_option_current_node in
6988 the conditional part. Call save_restore_target_globals.
6989 * config/arm/arm.c (arm_set_current_function):
6990 Refactor to better support #pragma target and attribute mix.
6991 Call save_restore_target_globals.
6992 * config/arm/arm-protos.h (save_restore_target_globals): New function.
6993
6994 2016-01-27 Martin Liska <mliska@suse.cz>
6995
6996 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
6997 reference for an HSA kernel and its host function.
6998
6999 2016-01-27 Jakub Jelinek <jakub@redhat.com>
7000
7001 PR tree-optimization/69399
7002 * wide-int.h (wi::lrshift): For larger precisions, only
7003 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
7004
7005 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
7006
7007 * config/arc/predicates.md (proper_comparison_operator): Reject
7008 constant-constant comparison.
7009
7010 2016-01-26 Tom de Vries <tom@codesourcery.com>
7011
7012 PR tree-optimization/69110
7013 * tree-data-ref.c (initialize_data_dependence_relation): Handle
7014 DR_NUM_DIMENSIONS == 0.
7015
7016 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7017 Sebastian Pop <s.pop@samsung.com>
7018
7019 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
7020 isl_ast_op_cond and isl_ast_op_select.
7021 (gcc_expression_from_isl_expr_op): Same.
7022
7023 2016-01-26 Jason Merrill <jason@redhat.com>
7024
7025 PR c++/68782
7026 * tree.c (recompute_constructor_flags): Split out from
7027 build_constructor.
7028 (verify_constructor_flags): New.
7029 * tree.h: Declare them.
7030
7031 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
7032
7033 PR rtl-optimization/69217
7034 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
7035 are no TYPE_FIELDS set for the record type.
7036
7037 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7038
7039 PR target/68662
7040 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
7041 toc_label_name unconditionally.
7042 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
7043 SYMBOL_REF string. Use toc_label_name instead of constructing
7044 LCTOC1.
7045 (rs6000_elf_declare_function_name): Use toc_label_name instead of
7046 constructing LCTOC1.
7047
7048 2016-01-26 Martin Sebor <msebor@redhat.com>
7049
7050 PR other/69477
7051 * doc/extend.texi (Common Type Attributes): Move text that talks about
7052 attribute packed from attribute aligned to the section discussing
7053 the former attribute for clarity.
7054
7055 2016-01-26 Richard Henderson <rth@redhat.com>
7056
7057 PR middle-end/60908
7058 * trans-mem.c (tm_region_init): Mark entry block as visited.
7059
7060 2016-01-26 David Malcolm <dmalcolm@redhat.com>
7061
7062 PR other/69006
7063 * diagnostic-show-locus.c (layout::print_source_line): Replace
7064 call to pp_newline with call to layout::print_newline.
7065 (layout::print_annotation_line): Likewise.
7066 (layout::move_to_column): Likewise.
7067 (layout::print_any_fixits): After printing any fixits, print a
7068 trailing newline, if necessary.
7069 (layout::print_newline): New method, resetting any colorization
7070 before a newline.
7071 (diagnostic_show_locus): Move the pp_newline to before the
7072 early bailout. Remove dummy block enclosing the layout instance.
7073 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
7074 of pp_newline_and_flush with pp_flush.
7075 (diagnostic_append_note): Delete use of pp_newline.
7076 (diagnostic_append_note_at_rich_loc): Delete.
7077 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
7078 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
7079 when newline characters are added to the buffer.
7080
7081 2016-01-26 Michael Matz <matz@suse.de>
7082
7083 * configure.ac (ac_cv_std_swap_in_utility): New test.
7084 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
7085 * configure: Regenerate.
7086 * config.in: Regenerate.
7087
7088 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
7089
7090 * config/arc/arc.md (cstoresi4): Force operand into register.
7091 (arcset<code>): Fix predicate.
7092 (arcsetltu): Likewise.
7093 (arcsetgeu): Likewise.
7094 (arcsethi): Likewise.
7095 (arcsetls): Likewise.
7096
7097 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7098
7099 PR tree-optimization/69483
7100 * gimple-fold.c (canonicalize_constructor_val): Return NULL
7101 if base has error_mark_node type.
7102
7103 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
7104
7105 PR target/68620
7106 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
7107 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
7108 New helper macros.
7109 (vget_lane_f16): Handle big-endian.
7110 (vgetq_lane_f16): Likewise.
7111 (vset_lane_f16): Likewise.
7112 (vsetq_lane_f16): Likewise.
7113 * config/arm/iterators.md (VQXMOV): Add V8HF.
7114 (VDQ): Add V4HF and V8HF.
7115 (V_reg): Handle V4HF and V8HF.
7116 (Is_float_mode): Likewise.
7117 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
7118 neon_vdup_nv8hf): New patterns.
7119 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
7120 Use VD_LANE iterator.
7121 (neon_vld1_dup<mode>): Use VQ2 iterator.
7122
7123 2016-01-26 Nathan Sidwell <nathan@acm.org>
7124
7125 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
7126 (set_oacc_fn_attrib): Add IS_KERNEL arg.
7127 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
7128 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
7129 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
7130 (oacc_validate_dims): Add LEVEL arg, don't return level.
7131 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
7132 oacc_validate_dims.
7133 (execute_oacc_device_lower): Adjust, add more dump output.
7134 * tree-ssa-loop.c (gate_oacc_kernels): Use
7135 oacc_fn_attrib_kernels_p.
7136 * tree-parloops.c (create_parallel_loop): Adjust
7137 set_oacc_fn_attrib call.
7138
7139 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7140
7141 PR lto/69254
7142 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
7143 (append_compiler_options): Handle -fcilkplus.
7144 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
7145
7146 2016-01-26 Nick Clifton <nickc@redhat.com>
7147
7148 PR target/66655
7149 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
7150 been marked as DECL_ONE_ONLY but we do not the means to make it
7151 so, then do not allow it to bind locally.
7152
7153 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7154
7155 PR lto/69254
7156 * opts.h (parse_sanitizer_options): New prototype.
7157 * opts.c (sanitizer_opts): New array.
7158 (parse_sanitizer_options): New function.
7159 (common_handle_option): Use parse_sanitizer_options.
7160
7161 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
7162
7163 PR target/68986
7164 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
7165 alignment adjustment to ...
7166 (ix86_update_stack_boundary): Here. Don't over-align stack for
7167 __tls_get_addr.
7168 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
7169 if __tls_get_addr is called.
7170
7171 2016-01-26 Christian Bruel <christian.bruel@st.com>
7172
7173 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
7174
7175 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
7176
7177 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
7178
7179 2016-01-26 Richard Biener <rguenther@suse.de>
7180
7181 PR middle-end/69467
7182 * match.pd: Guard X * CST CMP 0 pattern with single_use.
7183
7184 2016-01-26 Richard Biener <rguenther@suse.de>
7185
7186 PR tree-optimization/69452
7187 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
7188 (move_computations_dom_walker::before_dom_children): Rename
7189 to ...
7190 (move_computations_worker): This.
7191 (move_computations): Perform an RPO rather than a DOM walk.
7192
7193 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7194
7195 PR target/69442
7196 * combine.c (combine_instructions): For REG_EQUAL note with
7197 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
7198 to the underlying register.
7199 * doc/rtl.texi (REG_EQUAL): Document the behavior of
7200 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
7201
7202 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
7203
7204 PR target/67896
7205 * config/aarch64/aarch64-builtins.c
7206 (aarch64_init_simd_builtin_types): Do not set structural
7207 equality to __Poly{8,16,64,128}_t types.
7208
7209 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
7210
7211 PR tree-optimization/69400
7212 * wide-int.cc (wi_pack): Take the precision as argument and
7213 perform canonicalization here rather than in the callers.
7214 Use the main loop to handle all full-width HWIs. Add a
7215 zero HWI if in_len isn't a full result.
7216 (wi::divmod_internal): Update accordingly.
7217 (wi::mul_internal): Likewise. Simplify.
7218
7219 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7220 Sebastian Pop <s.pop@samsung.com>
7221
7222 * graphite-poly.c (apply_poly_transforms): Simplify.
7223 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
7224 (print_isl_map): Same.
7225 (print_isl_union_map): Same.
7226 (print_isl_schedule): New.
7227 (debug_isl_schedule): New.
7228 * graphite-dependences.c (scop_get_reads): Do not call
7229 isl_union_map_add_map that is undocumented isl functionality.
7230 (scop_get_must_writes): Same.
7231 (scop_get_may_writes): Same.
7232 (scop_get_original_schedule): Remove.
7233 (scop_get_dependences): Do not call isl_union_map_compute_flow that
7234 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
7235 (compute_deps): Remove.
7236 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
7237 (debug_schedule_ast): New.
7238 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
7239 set_separate_option.
7240 (graphite_regenerate_ast_isl): Add dump.
7241 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
7242 from scop->transformed_schedule.
7243 (graphite_regenerate_ast_isl): Add more dump.
7244 * graphite-optimize-isl.c (optimize_isl): Set
7245 scop->transformed_schedule. Check whether schedules are equal.
7246 (apply_poly_transforms): Move here.
7247 * graphite-poly.c (apply_poly_transforms): ... from here.
7248 (free_poly_bb): Static.
7249 (free_scop): Static.
7250 (pbb_number_of_iterations_at_time): Remove.
7251 (print_isl_ast): New.
7252 (debug_isl_ast): New.
7253 (debug_scop_pbb): New.
7254 * graphite-scop-detection.c (print_edge): Move.
7255 (print_sese): Move.
7256 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7257 (build_scop_scattering): Remove.
7258 (create_pw_aff_from_tree): Assert instead of bailing out.
7259 (add_condition_to_pbb): Remove unused code, do not fail.
7260 (add_conditions_to_domain): Same.
7261 (add_conditions_to_constraints): Remove.
7262 (build_scop_context): New.
7263 (add_iter_domain_dimension): New.
7264 (build_iteration_domains): Initialize pbb->iterators.
7265 Call add_conditions_to_domain.
7266 (nested_in): New.
7267 (loop_at): New.
7268 (index_outermost_in_loop): New.
7269 (index_pbb_in_loop): New.
7270 (outermost_pbb_in): New.
7271 (add_in_sequence): New.
7272 (add_outer_projection): New.
7273 (outer_projection_mupa): New.
7274 (add_loop_schedule): New.
7275 (build_schedule_pbb): New.
7276 (build_schedule_loop): New.
7277 (embed_in_surrounding_loops): New.
7278 (build_schedule_loop_nest): New.
7279 (build_original_schedule): New.
7280 (build_poly_scop): Call build_original_schedule.
7281 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
7282 (free_poly_dr): Remove.
7283 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
7284 (free_poly_bb): Remove.
7285 (debug_loop_vec): Remove.
7286 (print_isl_ast): Declare.
7287 (debug_isl_ast): Declare.
7288 (scop_do_interchange): Remove.
7289 (scop_do_strip_mine): Remove.
7290 (scop_do_block): Remove.
7291 (flatten_all_loops): Remove.
7292 (optimize_isl): Remove.
7293 (pbb_number_of_iterations_at_time): Remove.
7294 (debug_scop_pbb): Declare.
7295 (print_schedule_ast): Declare.
7296 (debug_schedule_ast): Declare.
7297 (struct scop): Remove schedule. Add original_schedule,
7298 transformed_schedule.
7299 (free_gimple_poly_bb): Remove.
7300 (print_generated_program): Remove.
7301 (debug_generated_program): Remove.
7302 (unify_scattering_dimensions): Remove.
7303 * sese.c (print_edge): ... here.
7304 (print_sese): ... here.
7305 (debug_edge): ... here.
7306 (debug_sese): ... here.
7307 * sese.h (print_edge): Declare.
7308 (print_sese): Declare.
7309 (dump_edge): Declare.
7310 (dump_sese): Declare.
7311
7312 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7313 Sebastian Pop <s.pop@samsung.com>
7314
7315 * Makefile.in: Set ISLVER in site.exp.
7316
7317 2016-01-25 Jakub Jelinek <jakub@redhat.com>
7318
7319 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
7320 DECL_VALUE_EXPR of new_var even for the non-array case. Look
7321 through DECL_VALUE_EXPR for expansion.
7322
7323 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
7324
7325 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
7326 the frame info after reload completed.
7327
7328 2016-01-25 Jeff Law <law@redhat.com>
7329
7330 PR tree-optimization/69196
7331 PR tree-optimization/68398
7332 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
7333 tree-ssa-threadupdate.c.
7334 (determine_bb_domination_status): Prototype
7335 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
7336 (determine_bb_domination_status): No longer static.
7337 (valid_jump_thread_path): Remove code to detect characteristics
7338 of the jump thread path not associated with correctness.
7339 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
7340 Correct test for thread path length. Count PHIs for real operands as
7341 statements that need to be copied. Do not count ASSERT_EXPRs.
7342 Look at all the blocks in the thread path. Compute and selectively
7343 filter thread paths based on threading through the latch, threading
7344 a multiway branch or crossing a multiway branch.
7345
7346 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7347
7348 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
7349 decl with __attribute__ ((unused)) annotation.
7350
7351 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
7352
7353 PR target/69421
7354 * tree-vect-stmts.c (vectorizable_condition): Check vectype
7355 of operands is compatible with a statement vectype.
7356
7357 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
7358
7359 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
7360 improve wording for mixed storage order support.
7361
7362 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
7363
7364 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
7365 (vcvt_u64_f64): Likewise.
7366 (vcvta_s64_f64): Likewise.
7367 (vcvta_u64_f64): Likewise.
7368 (vcvtm_s64_f64): Likewise.
7369 (vcvtm_u64_f64): Likewise.
7370 (vcvtn_s64_f64): Likewise.
7371 (vcvtn_u64_f64): Likewise.
7372 (vcvtp_s64_f64): Likewise.
7373 (vcvtp_u64_f64): Likewise.
7374
7375 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
7376
7377 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
7378 (arc_init): Check validity mll64 option.
7379 (arc_save_restore): Use double load/store instruction.
7380 (arc_expand_movmem): Likewise.
7381 (arc_split_move): Don't split if we have double load/store
7382 instructions. Returns a boolean.
7383 (arc_process_double_reg_moves): Change function to return boolean
7384 instead of a sequence of instructions.
7385 (arc_dwarf_register_span): New function.
7386 * config/arc/arc-protos.h (arc_split_move): Change prototype.
7387 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
7388 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
7389 (*movdf_insn): Likewise.
7390 * config/arc/arc.opt (mll64): New option.
7391 * config/arc/predicates.md (even_register_operand): New predicate.
7392 * doc/invoke.texi (ARC Options): Add mll64 documentation.
7393
7394 2016-01-25 Richard Biener <rguenther@suse.de>
7395
7396 PR lto/69393
7397 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
7398 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
7399 DECL_NAMELESS.
7400 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
7401
7402 2016-01-25 Richard Biener <rguenther@suse.de>
7403
7404 PR tree-optimization/69376
7405 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
7406 flag.
7407 (VN_INFO_ANTI_RANGE_P): New inline.
7408 (VN_INFO_RANGE_TYPE): Likewise.
7409 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
7410 SSA_NAME_ANTI_RANGE_P.
7411 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
7412 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7413 Properly query VN_INFO_RANGE_TYPE.
7414
7415 2016-01-25 Nick Clifton <nickc@redhat.com>
7416
7417 PR target/66655
7418 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
7419
7420 2016-01-23 Tom de Vries <tom@codesourcery.com>
7421
7422 PR tree-optimization/69426
7423 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
7424 removed clobber.
7425
7426 2016-01-23 Jakub Jelinek <jakub@redhat.com>
7427
7428 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
7429 "the the" with "the" in the comments.
7430 * ipa-devirt.c (build_type_inheritance_graph,
7431 update_type_inheritance_graph): Likewise.
7432 * tree.c (build_function_type_list_1): Likewise.
7433 * cfgloopmanip.c (scale_loop_profile): Likewise.
7434 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
7435 * gimple-ssa-split-paths.c
7436 (find_block_to_duplicate_for_splitting_paths): Likewise.
7437 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
7438 * expr.c (convert_move): Likewise.
7439 * var-tracking.c (vt_stack_adjustments): Likewise.
7440 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7441 * tree-vrp.c (test_for_singularity): Likewise.
7442
7443 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
7444 directly instead of building a temporary tree.
7445
7446 PR bootstrap/69434
7447 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
7448 remove <algorithm> include.
7449
7450 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7451
7452 PR target/69432
7453 * config/i386/i386.c: Include dojump.h.
7454 (expand_small_movmem_or_setmem,
7455 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
7456 fixes.
7457 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
7458 if dynamic_check != -1.
7459
7460 2016-01-21 Jeff Law <law@redhat.com>
7461
7462 PR middle-end/69347
7463 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
7464 record_temporary_equivalences. Rewritten to avoid unnecessary calls
7465 into dominated_by_p.
7466 (cprop_into_successor_phis): Avoid unnecessary tests.
7467
7468 2016-01-22 Richard Henderson <rth@redhat.com>
7469
7470 PR target/69416
7471 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
7472 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
7473
7474 2016-01-22 Michael Matz <matz@suse.de>
7475
7476 * system.h (string, algorithm): Include only conditionally.
7477 (new): Include always under C++.
7478 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
7479 * final.c (toplevel): Ditto.
7480 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
7481 * genconditions.c (write_header): Make gencondmd.c define
7482 INCLUDE_STRING.
7483 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
7484
7485 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
7486 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
7487
7488 2016-01-22 Christian Bruel <christian.bruel@st.com>
7489
7490 PR target/68674
7491 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
7492
7493 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7494
7495 PR target/69403
7496 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
7497 define_insn_and_split. Ensure operands[1] and operands[0] do not
7498 get assigned the same register.
7499
7500 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
7501
7502 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
7503
7504 2016-01-22 Christian Bruel <christian.bruel@st.com>
7505
7506 * config/arm/arm-c.c (arm_pragma_target_parse):
7507 Remove warn_builtin_macro_redefined overwrite.
7508
7509 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7510
7511 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
7512 flag_non_call_exceptions compatibility.
7513
7514 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7515
7516 PR debug/66668
7517 * dwarf2out.c (add_child_die_after): New function.
7518 (dwarf_qual_info_t): New type.
7519 (dwarf_qual_info): New variable.
7520 (qualified_die_p): New function.
7521 (modified_type_die): For -fdebug-types-section, ensure
7522 canonical order of qualifiers. Put qualified DIEs adjacent
7523 to the corresponding non-qualified type DIE and search there
7524 for existing qualified DIEs.
7525
7526 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7527
7528 * doc/extend.texi (scalar_storage_order type attribute): Document
7529 restriction on type punning and aliasing, and remove future tense.
7530
7531 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
7532
7533 PR target/69252
7534 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
7535 first stage.
7536
7537 2016-01-21 Jeff Law <law@redhat.com>
7538
7539 PR middle-end/69347
7540 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
7541 useless call to record_temporary_equivalences.
7542 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
7543 allocate 10 slots in the bb_path vector and let it grow as needed.
7544 (fsm_find_control_statement_thread_paths): Similarly for the next_path
7545 vector.
7546
7547 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7548
7549 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
7550 Detangle.
7551 * configure: Regenerate.
7552
7553 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
7554
7555 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
7556 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
7557
7558 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
7559
7560 PR middle-end/66178
7561 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
7562 drop EXPAND_INITIALIZER.
7563 * rtl.h (contains_symbolic_reference_p): Declare.
7564 * rtlanal.c (contains_symbolic_reference_p): New function.
7565 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
7566 a subtraction into a NOT if symbolic constants are involved.
7567
7568 2016-01-21 Anton Blanchard <anton@samba.org>
7569 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7570
7571 PR target/63354
7572 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
7573 #define.
7574 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
7575 function.
7576
7577 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7578
7579 * config/microblaze/microblaze.c
7580 (get_branch_target): New.
7581 (insert_wic_for_ilb_runout): New.
7582 (insert_wic): New.
7583 (microblaze_machine_dependent_reorg): New.
7584 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
7585 * config/microblaze/microblaze.md
7586 (UNSPEC_IPREFETCH): Define.
7587 (iprefetch): New pattern
7588 * config/microblaze/microblaze.opt
7589 (mxl-prefetch): New flag.
7590
7591 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7592
7593 * config/microblaze/microblaze.h
7594 (FIXED_REGISTERS): Update in macro.
7595 (CALL_USED_REGISTERS): Update in macro.
7596
7597 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
7598
7599 PR rtl-optimization/68920
7600 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
7601 moves.
7602
7603 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
7604
7605 PR rtl-optimization/68990
7606 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
7607 pseudo instead of inheritance ones.
7608
7609 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7610 Nick Clifton <nickc@redhat.com>
7611
7612 PR target/69129
7613 PR target/69012
7614 * config/mips/mips.c (mips_compute_frame_info): Initialise
7615 args_size and hard_frame_pointer_offset fields of the frame
7616 structure before calling mips_global_pointer.
7617
7618 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7619
7620 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
7621 label reference.
7622 * configure: Regenerate.
7623
7624 2016-01-21 Richard Biener <rguenther@suse.de>
7625
7626 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
7627
7628 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7629
7630 * config/s390/s390.c (s390_asm_declare_function_size): Add code
7631 to actually emit the .size directive.
7632
7633 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
7634 Jakub Jelinek <jakub@redhat.com>
7635
7636 PR target/69187
7637 PR target/65624
7638 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
7639 args array size by one to avoid buffer overflow.
7640
7641 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7642
7643 * config/s390/s390.md (pool_section_start): Use switch_to_section
7644 to select proper read-only data section instead of hardcoding
7645 .rodata.
7646 (pool_section_end): Use switch_to_section to match the above.
7647
7648 2016-01-21 Richard Biener <rguenther@suse.de>
7649
7650 PR tree-optimization/69378
7651 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
7652 (set_ssa_val_to): Use it for dominance checks taking into
7653 account not executable edges.
7654
7655 2016-01-21 Jakub Jelinek <jakub@redhat.com>
7656
7657 PR c++/69355
7658 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
7659 for bitsize instead of GET_MODE_PRECISION (mode).
7660
7661 2016-01-20 Martin Sebor <msebor@redhat.com>
7662
7663 PR c/52291
7664 * extend.texi (__sync Builtins): Clarify the semantics of
7665 __sync_fetch_and_OP built-ins on pointers.
7666 (__atomic Builtins): Same.
7667
7668 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7669 Sebastian Pop <s.pop@samsung.com>
7670
7671 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
7672 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
7673 (is_valid_rename): Same.
7674 (translate_isl_ast_to_gimple::get_rename): Same.
7675 (translate_isl_ast_to_gimple::rename_all_uses): Same.
7676 (translate_isl_ast_to_gimple::rename_uses): Same.
7677 (get_new_name): Check for close_phi nodes.
7678 (copy_loop_phi_args): Use phi_node_kind.
7679 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
7680 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
7681
7682 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7683 Sebastian Pop <s.pop@samsung.com>
7684
7685 Revert commit r229783.
7686 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7687 Remove use of parameter_rename_map.
7688 (copy_def): Remove.
7689 (copy_internal_parameters): Remove.
7690 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7691 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7692 (free_sese_info): Do not free parameter_rename_map.
7693 (set_rename): Do not use parameter_rename_map.
7694 (rename_uses): Update call to set_rename.
7695 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7696 * sese.h (parameter_rename_map_t): Remove.
7697 (struct sese_info_t): Remove field parameter_rename_map.
7698
7699 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7700 Sebastian Pop <s.pop@samsung.com>
7701
7702 * graphite-isl-ast-to-gimple.c: Fix comment.
7703 * graphite-scop-detection.c (defined_in_loop_p): New.
7704 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
7705 names defined in loop.
7706
7707 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7708 Sebastian Pop <s.pop@samsung.com>
7709
7710 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
7711 Discard unstructured if-then-else regions.
7712
7713 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7714 Sebastian Pop <s.pop@samsung.com>
7715
7716 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
7717 (cleanup_loop_iter_dom): Remove.
7718 (build_loop_iteration_domains): Remove.
7719 (build_scop_context): Remove.
7720 (build_scop_iteration_domain): Remove.
7721 (add_loop_constraints): New.
7722 (build_iteration_domains): New.
7723 (build_poly_scop): Call build_iteration_domains.
7724
7725 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7726 Sebastian Pop <s.pop@samsung.com>
7727
7728 * graphite-scop-detection.c
7729 (scop_detection::harmful_loop_in_region): Free dom and loops.
7730 (scop_detection::loop_body_is_valid_scop): Free bbs.
7731
7732 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7733 Sebastian Pop <s.pop@samsung.com>
7734
7735 * graphite-scop-detection.c (record_loop_in_sese): New.
7736 (gather_bbs::before_dom_children): Call record_loop_in_sese.
7737 (build_scops): Remove call to build_sese_loop_nests.
7738 * sese.c (sese_record_loop): Remove.
7739 (build_sese_loop_nests): Remove.
7740 (new_sese_info): Remove region->loops.
7741 (free_sese_info): Same.
7742 * sese.h (sese_contains_loop): Same.
7743 (build_sese_loop_nests): Remove.
7744 (sese_contains_loop): Remove.
7745
7746 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7747 Sebastian Pop <s.pop@samsung.com>
7748
7749 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
7750 loop_is_valid_in_scop.
7751 (scop_detection::harmful_stmt_in_region): Renamed
7752 harmful_loop_in_region.
7753 Call loop_is_valid_in_scop.
7754
7755 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7756 Sebastian Pop <s.pop@samsung.com>
7757
7758 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
7759 isl_ast_node_mark.
7760
7761 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7762 Sebastian Pop <s.pop@samsung.com>
7763
7764 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
7765 * graphite.h (struct poly_bb): Remove field is_reduction.
7766 (PBB_IS_REDUCTION): Remove.
7767
7768 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7769 Sebastian Pop <s.pop@samsung.com>
7770
7771 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
7772 (add_pdr_constraints): Same.
7773 (scop_get_reads): Same.
7774 (scop_get_must_writes): Same.
7775 (scop_get_may_writes): Same.
7776 (scop_get_original_schedule): Same.
7777 (extend_schedule): Same.
7778 (apply_schedule_on_deps): Same.
7779 (carries_deps): Same.
7780 (compute_deps): Same.
7781 (scop_get_dependences): Same.
7782 * graphite-isl-ast-to-gimple.c
7783 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
7784 * graphite-optimize-isl.c (get_schedule_for_band): Same.
7785 (get_schedule_for_band_list): Same.
7786 (get_schedule_map): Same.
7787 (apply_schedule_map_to_scop): Same.
7788 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7789 (build_loop_iteration_domains): Same.
7790 (add_condition_to_pbb): Same.
7791 (add_param_constraints): Same.
7792 (pdr_add_memory_accesses): Same.
7793 (pdr_add_data_dimensions): Same.
7794
7795 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
7796
7797 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
7798 requirements.
7799
7800 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
7801
7802 * common.opt (feliminate-dwarf2-dups): Replace references to
7803 "DWARF 2" with just "DWARF".
7804 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
7805 * doc/extend.texi: Likewise.
7806 * doc/cpp.texi: Likewise.
7807 * doc/invoke.texi: Likewise.
7808 (Option Summary): Add -gdwarf to list of Debugging Options.
7809 (Debugging Options): Document -gdwarf.
7810 * doc/contrib.texi: Spell "DWARF" like that.
7811
7812 2016-01-21 Jakub Jelinek <jakub@redhat.com>
7813
7814 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
7815 warning. Fix up formatting.
7816
7817 PR middle-end/67653
7818 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
7819 attempt to mark memory input operand addressable and
7820 call prepare_gimple_addressable in that case. Don't adjust
7821 input_location for diagnostics, use error_at instead.
7822
7823 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
7824
7825 * config/rs6000/ppc-auxv.h: New file.
7826 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
7827 (cpu_is): Likewise.
7828 (cpu_supports): Likewise.
7829 * config/rs6000/rs6000.c: include "ppc-auxv.h".
7830 (cpu_is_info): New variable.
7831 (cpu_supports_info): Likewise.
7832 (tcb_verification_symbol): Likewise.
7833 (cpu_builtin_p): Likewise.
7834 (cpu_expand_builtin): New function.
7835 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
7836 (rs6000_init_builtins): Likewise.
7837 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
7838 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
7839 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
7840 * configure: Regenerate.
7841 * config.in: Likewise.
7842 * doc/extend.texi (PowerPC Built-in Functions): Document
7843 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
7844
7845 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
7846
7847 PR target/68609
7848 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
7849 domain check.
7850 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
7851 for V4SFmode.
7852
7853 2016-01-20 Richard Henderson <rth@redhat.com>
7854
7855 PR bootstrap/69343
7856 PR bootstrap/69339
7857 PR tree-opt/68964
7858 Revert:
7859 * tree.c (tm_define_builtin): New.
7860 (find_tm_vector_type): New.
7861 (build_tm_vector_builtins): New.
7862 (build_common_builtin_nodes): Call it.
7863
7864 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
7865
7866 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
7867 (arm_fp_ok): Likewise.
7868 (arm_fp): Likewise.
7869 (arm_crypto): Likewise.
7870
7871 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
7872 Richard Biener <rguenther@suse.de>
7873
7874 PR tree-optimization/69328
7875 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
7876 vectors have same number of elements.
7877 (vectorizable_condition): Fix masked version recognition.
7878
7879 2016-01-20 Richard Biener <rguenther@suse.de>
7880
7881 PR tree-optimization/69345
7882 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
7883 (VN_INFO_PTR_INFO): Likewise.
7884 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
7885 info when it is equal between non-dominating SSA names.
7886 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7887 Make sure to look at original SSA infos.
7888
7889 2016-01-20 Jeff Law <law@redhat.com>
7890
7891 PR target/25114
7892 * config/m68k/predicates.md (pow2_m1_operand): New predicate
7893 extracted from ...
7894 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
7895 (pc_or_label_operand): New predicate.
7896 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
7897 tests for small integers that are 2^n - 1.
7898
7899 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
7900
7901 * doc/invoke.texi (Options Summary): Add '.' after @xref.
7902
7903 2016-01-19 Jeff Law <law@redhat.com>
7904
7905 PR middle-end/69347
7906 * tree-ssa-threadbackwards.c
7907 (fsm_find_control_statement_thread_paths): Do not try to lookup
7908 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
7909
7910 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7911
7912 * doc/lto.texi: Remove text that says only Gold has linker plugin
7913 support.
7914
7915 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
7916
7917 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
7918 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
7919 the DIE accordingly.
7920 (modified_type_die): Add REVERSE parameter and pass it recursively,
7921 as well as to base_type_die. Adjust presence check accordingly.
7922 (base_type_for_mode): Adjust call to modified_type_die.
7923 (add_type_attribute): Add REVERSE parameter and pass it to
7924 modified_type_die.
7925 (generic_parameter_die): Adjust call to add_type_attribute.
7926 (add_scalar_info): Likewise.
7927 (add_subscript_info): Likewise.
7928 (gen_array_type_die): Likewise.
7929 (gen_descr_array_type_die): Likewise.
7930 (gen_entry_point_die): Likewise.
7931 (gen_enumeration_type_die): Likewise.
7932 (gen_formal_parameter_die): Likewise.
7933 (gen_subprogram_die): Likewise.
7934 (gen_variable_die ): Likewise.
7935 (gen_const_die): Likewise.
7936 (gen_field_die): Likewise.
7937 (gen_pointer_type_die): Likewise.
7938 (gen_reference_type_die): Likewise.
7939 (gen_ptr_to_mbr_type_die): Likewise.
7940 (gen_inheritance_die): Likewise.
7941 (gen_subroutine_type_die): Likewise.
7942 (gen_typedef_die): Likewise.
7943 (force_type_die): Adjust call to modified_type_die.
7944
7945 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
7946
7947 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
7948 flow throughout the file. Fix broken link to Objective-C 2.0
7949 documentation.
7950 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
7951 errors.
7952
7953 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7954
7955 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
7956
7957 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7958
7959 PR ipa/66223
7960 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
7961 (maybe_record_node): Record cxa_pure_virtual as the only possible
7962 target if there are not ohter candidates.
7963 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
7964
7965 2016-01-19 Richard Biener <rguenther@suse.de>
7966
7967 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
7968 (get_memory_order): Likewise.
7969
7970 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
7971
7972 * tree-vect-stmts.c (vectorizable_store): Check
7973 rhs vectype.
7974
7975 2016-01-19 David Malcolm <dmalcolm@redhat.com>
7976
7977 PR jit/68446
7978 * gcc.c (driver::decode_argv): Add call to
7979 init_opts_obstack before init_options_struct.
7980 * opts.c (init_opts_obstack): Remove idempotency.
7981 (init_options_struct): Replace call to init_opts_obstack
7982 with a gcc_assert to verify that it has already been called.
7983 * toplev.c (toplev::main): Add call to init_opts_obstack before
7984 calls to init_options_struct.
7985 (toplev::finalize): Move cleanup of opts_obstack next to
7986 cleanup of save_decoded_options, clearing the latter, and
7987 save_decoded_options_count.
7988
7989 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7990
7991 PR target/69135
7992 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
7993 attribute to unconditional. Remove %? from output template.
7994
7995 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7996 Jiong Wang <jiong.wang@arm.com>
7997
7998 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
7999 generated from different expand order.
8000
8001 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8002
8003 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
8004 Add support for CCMP costing.
8005
8006 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8007
8008 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
8009 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
8010 (fccmpe<mode>): Likewise.
8011 (fcmp): Rename to fcmp and globalize pattern.
8012 (fcmpe): Likewise.
8013 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
8014 (aarch64_gen_ccmp_next): Add FP support.
8015
8016 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8017
8018 * target.def (gen_ccmp_first): Update documentation.
8019 (gen_ccmp_next): Likewise.
8020 * doc/tm.texi (gen_ccmp_first): Update documentation.
8021 (gen_ccmp_next): Likewise.
8022 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
8023 expand_ccmp_expr_1. Improve comments.
8024 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
8025 (ccmp_ior<mode>): Remove pattern.
8026 (cmp<mode>): Remove expand.
8027 (cmp): Globalize pattern.
8028 (cstorecc4): Use cc_register.
8029 (mov<mode>cc): Remove ccmp_cc_register check.
8030 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
8031 Simplify after removal of CC_DNE/* modes.
8032 (aarch64_ccmp_mode_to_code): Remove.
8033 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
8034 In 'k' case use integer as condition.
8035 (aarch64_nzcv_codes): Remove inverted cases.
8036 (aarch64_code_to_ccmode): Remove.
8037 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
8038 comparison with CC register to be used in folowing CCMP/branch/CSEL.
8039 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
8040 pattern. Return the comparison with CC register. Invert conditions
8041 when bitcode is OR.
8042 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
8043 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
8044
8045 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8046
8047 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
8048 instrumented_version.
8049
8050 2016-01-19 Richard Biener <rguenther@suse.de>
8051
8052 PR tree-optimization/69336
8053 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
8054 handled components with get_ref_base_and_extent.
8055 (equal_mem_array_ref_p): Adjust.
8056
8057 2016-01-19 Jakub Jelinek <jakub@redhat.com>
8058
8059 PR debug/65779
8060 * shrink-wrap.c: Include valtrack.h.
8061 (move_insn_for_shrink_wrap): Add DEBUG argument. If
8062 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
8063 in between insn and where it will be moved to. Call
8064 dead_debug_insert_temp.
8065 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
8066 first and dead_debug_local_finish at the end.
8067 For uses and defs bitmap, handle all regs in between REGNO and
8068 END_REGNO, not just the first one.
8069
8070 2016-01-19 Richard Biener <rguenther@suse.de>
8071
8072 PR tree-optimization/69352
8073 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
8074 (equal_mem_array_ref_p): Constrain size and max size properly.
8075 Compare the reverse flag.
8076
8077 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
8078
8079 * ira.c (ira): Update regstat data if we deleted insns.
8080
8081 2016-01-19 Jakub Jelinek <jakub@redhat.com>
8082
8083 PR rtl-optimization/68955
8084 PR rtl-optimization/64557
8085 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
8086 here. Fix up formatting.
8087 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
8088
8089 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8090
8091 PR lto/69133
8092 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
8093 assume that the node has body.
8094 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
8095 check.
8096
8097 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8098
8099 * lto-streamer-out.c (lto_output): Do not stream instrumentation
8100 thunks.
8101
8102 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8103
8104 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
8105 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
8106
8107 2016-01-19 Martin Jambor <mjambor@suse.cz>
8108 Martin Liska <mliska@suse.cz>
8109 Michael Matz <matz@suse.de>
8110
8111 * Makefile.in (OBJS): Add new source files.
8112 (GTFILES): Add hsa.c.
8113 * common.opt (disable_hsa): New variable.
8114 (-Whsa): New warning.
8115 * config.in (ENABLE_HSA): New.
8116 * configure.ac: Treat hsa differently from other accelerators.
8117 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
8118 $enable_offloading.
8119 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
8120 * doc/install.texi (Configuration): Document --with-hsa-runtime,
8121 --with-hsa-runtime-include, --with-hsa-runtime-lib and
8122 --with-hsa-kmt-lib.
8123 * doc/invoke.texi (-Whsa): Document.
8124 (hsa-gen-debug-stores): Likewise.
8125 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
8126 to invoke offload compiler for hsa acclerator.
8127 * opts.c (common_handle_option): Determine whether HSA offloading
8128 should be performed.
8129 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
8130 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
8131 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
8132 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
8133 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
8134 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
8135 GF_OMP_FOR_KIND_GRID_LOOP.
8136 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
8137 (pp_gimple_stmt_1): Likewise.
8138 * gimple-walk.c (walk_gimple_stmt): Likewise.
8139 * gimple.c (gimple_build_omp_grid_body): New function.
8140 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
8141 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
8142 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
8143 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
8144 GF_OMP_TEAMS_GRID_PHONY.
8145 (gimple_statement_omp_single_layout): Updated comments.
8146 (gimple_build_omp_grid_body): New function.
8147 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
8148 (gimple_omp_for_grid_phony): New function.
8149 (gimple_omp_for_set_grid_phony): Likewise.
8150 (gimple_omp_parallel_grid_phony): Likewise.
8151 (gimple_omp_parallel_set_grid_phony): Likewise.
8152 (gimple_omp_teams_grid_phony): Likewise.
8153 (gimple_omp_teams_set_grid_phony): Likewise.
8154 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
8155 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
8156 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
8157 (BUILT_IN_GOMP_TARGET): Updated type.
8158 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
8159 (adjust_for_condition): New function.
8160 (get_omp_for_step_from_incr): Likewise.
8161 (extract_omp_for_data): Moved parts to adjust_for_condition and
8162 get_omp_for_step_from_incr.
8163 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
8164 (fixup_child_record_type): Bail out if receiver_decl is NULL.
8165 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
8166 (scan_omp_parallel): Do not create child functions for phony
8167 constructs.
8168 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
8169 (scan_omp_1_op): Checking assert we are not remapping to
8170 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
8171 (parallel_needs_hsa_kernel_p): New function.
8172 (expand_parallel_call): Register apprpriate parallel child
8173 functions as HSA kernels.
8174 (grid_launch_attributes_trees): New type.
8175 (grid_attr_trees): New variable.
8176 (grid_create_kernel_launch_attr_types): New function.
8177 (grid_insert_store_range_dim): Likewise.
8178 (grid_get_kernel_launch_attributes): Likewise.
8179 (get_target_argument_identifier_1): Likewise.
8180 (get_target_argument_identifier): Likewise.
8181 (get_target_argument_value): Likewise.
8182 (push_target_argument_according_to_value): Likewise.
8183 (get_target_arguments): Likewise.
8184 (expand_omp_target): Call get_target_arguments instead of looking
8185 up for teams and thread limit.
8186 (grid_expand_omp_for_loop): New function.
8187 (grid_arg_decl_map): New type.
8188 (grid_remap_kernel_arg_accesses): New function.
8189 (grid_expand_target_kernel_body): New function.
8190 (expand_omp): Call it.
8191 (lower_omp_for): Do not emit phony constructs.
8192 (lower_omp_taskreg): Do not emit phony constructs but create for them
8193 a temporary variable receiver_decl.
8194 (lower_omp_taskreg): Do not emit phony constructs.
8195 (lower_omp_teams): Likewise.
8196 (lower_omp_grid_body): New function.
8197 (lower_omp_1): Call it.
8198 (grid_reg_assignment_to_local_var_p): New function.
8199 (grid_seq_only_contains_local_assignments): Likewise.
8200 (grid_find_single_omp_among_assignments_1): Likewise.
8201 (grid_find_single_omp_among_assignments): Likewise.
8202 (grid_find_ungridifiable_statement): Likewise.
8203 (grid_target_follows_gridifiable_pattern): Likewise.
8204 (grid_remap_prebody_decls): Likewise.
8205 (grid_copy_leading_local_assignments): Likewise.
8206 (grid_process_kernel_body_copy): Likewise.
8207 (grid_attempt_target_gridification): Likewise.
8208 (grid_gridify_all_targets_stmt): Likewise.
8209 (grid_gridify_all_targets): Likewise.
8210 (execute_lower_omp): Call grid_gridify_all_targets.
8211 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
8212 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
8213 (tree_omp_clause): Added union field dimension.
8214 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
8215 * tree.c (omp_clause_num_ops): Added number of arguments of
8216 OMP_CLAUSE__GRIDDIM_.
8217 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
8218 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
8219 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
8220 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
8221 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
8222 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
8223 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
8224 * tree-pass.h (make_pass_gen_hsail): Declare.
8225 (make_pass_ipa_hsa): Likewise.
8226 * ipa-hsa.c: New file.
8227 * lto-section-in.c (lto_section_name): Add hsa section name.
8228 * lto-streamer.h (lto_section_type): Add hsa section.
8229 * timevar.def (TV_IPA_HSA): New.
8230 * hsa-brig-format.h: New file.
8231 * hsa-brig.c: New file.
8232 * hsa-dump.c: Likewise.
8233 * hsa-gen.c: Likewise.
8234 * hsa.c: Likewise.
8235 * hsa.h: Likewise.
8236 * toplev.c (compile_file): Call hsa_output_brig.
8237 * hsa-regalloc.c: New file.
8238
8239 2016-01-18 Jeff Law <law@redhat.com>
8240
8241 PR tree-optimization/69320
8242 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
8243 ranged object, do nothing if the RHS constant is not [0..1].
8244 (optimize_stmt): Comparing a boolean ranged object against a
8245 constant outside [0..1] results in a compile-time constant.
8246
8247 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
8248 test.
8249
8250 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
8251
8252 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8253 (Option Summary): Update to reflect new section and moved options.
8254 (C++ Dialect Options): Move -fstats to new section.
8255 (Debugging Options): Move all dump, statistics, and other GCC
8256 developer options to new section. Rewrite section introduction
8257 and re-order remaining options to put the more basic ones first.
8258 (Optimization Options): Move -fira-verbose and -flto-report* to
8259 new section.
8260 (Developer Options): New section incorporating moved options.
8261 * doc/cppopts.texi (-dM): Update cross-reference.
8262
8263 2016-01-18 Richard Henderson <rth@redhat.com>
8264
8265 PR target/69176
8266 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
8267 operands to pseudo only if CSE is expected. Split long immediate
8268 operands only after reload, and for the stack pointer.
8269 (*add<GPI>3_pluslong): Remove.
8270 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
8271 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
8272 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
8273 (*add<GPI>3 peepholes): New.
8274 (*add<GPI>3 splitters): New.
8275 * config/aarch64/constraints.md (Upl): New.
8276 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
8277
8278 2016-01-18 Richard Biener <rguenther@suse.de>
8279
8280 PR tree-optimization/69297
8281 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
8282 stmt at most once.
8283 (vect_bb_vectorization_profitable_p): Clear visited flag again.
8284
8285 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
8286
8287 PR middle-end/68542
8288 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
8289 of mixind vector and scalar types.
8290 (fold_relational_const): Add handling of vector
8291 comparison with boolean result.
8292 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
8293 comparison of vector operands with boolean result for EQ/NE only.
8294 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
8295 (verify_gimple_cond): Likewise.
8296 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
8297 valid type of VAL.
8298
8299 2016-01-18 Joseph Myers <joseph@codesourcery.com>
8300
8301 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
8302 !TARGET_OCTEON.
8303
8304 2016-01-18 Richard Biener <rguenther@suse.de>
8305
8306 PR middle-end/69308
8307 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
8308
8309 2016-01-18 Tom de Vries <tom@codesourcery.com>
8310
8311 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
8312
8313 2016-01-18 Tom de Vries <tom@codesourcery.com>
8314
8315 * omp-low.c (set_oacc_fn_attrib): Make extern.
8316 * omp-low.h (set_oacc_fn_attrib): Declare.
8317 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
8318 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
8319 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
8320 Add and handle function parameter oacc_kernels_p.
8321 (find_reduc_addr, get_omp_data_i_param): New function.
8322 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
8323 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
8324 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
8325 Calculate dominance info. Skip loops that are not in a kernels region
8326 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
8327 (pass_parallelize_loops::execute): Call parallelize_loops with
8328 oacc_kernels_p argument.
8329 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
8330 New member function.
8331 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
8332 * passes.def: Add argument to pass_parallelize_loops instantation.
8333
8334 2016-01-18 Tom de Vries <tom@codesourcery.com>
8335
8336 * tree-parloops.c (pass_parallelize_loops::execute): Allow
8337 pass_parallelize_loops to be run outside the loop pipeline.
8338
8339 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8340
8341 * tree-scalar-evolution.c (follow_copies_to_constant): New.
8342 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
8343
8344 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8345
8346 PR target/63679
8347 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
8348 using get_ref_base_and_extent.
8349 (equal_mem_array_ref_p): New.
8350 (hashable_expr_equal_p): Add call to previous.
8351
8352 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8353
8354 PR target/63679
8355 * tree-sra.c (disqualified_constants, constant_decl_p): New.
8356 (sra_initialize): Allocate disqualified_constants.
8357 (sra_deinitialize): Free disqualified_constants.
8358 (disqualify_candidate): Update disqualified_constants when appropriate.
8359 (create_access): Scan for constant-pool entries as we go along.
8360 (scalarizable_type_p): Add check against type_contains_placeholder_p.
8361 (maybe_add_sra_candidate): Allow constant-pool entries.
8362 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
8363 (initialize_constant_pool_replacements): New.
8364 (sra_modify_assign): Avoid mangling assignments created by previous,
8365 and don't generate writes into constant pool.
8366 (sra_modify_function_body): Call initialize_constant_pool_replacements.
8367
8368 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8369
8370 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
8371 andnot instruction.
8372 (scalar_chain::convert_op): Likewise.
8373 * config/i386/i386.md (*andndi3_doubleword): New.
8374
8375 2016-01-18 Richard Biener <rguenther@suse.de>
8376
8377 PR tree-optimization/69170
8378 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
8379 building a vector from scalar results of a pattern stmt.
8380
8381 2016-01-18 Jakub Jelinek <jakub@redhat.com>
8382
8383 * haifa-sched.c (autopref_multipass_init): Work around
8384 -Wmaybe-uninitialized warning.
8385
8386 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
8387
8388 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
8389 against the constant 0.
8390
8391 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8392
8393 PR tree-optimization/68799
8394 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
8395 look up phi candidates in the statement-candidate map.
8396 (phi_add_costs): Likewise.
8397 (record_phi_increments): Likewise.
8398 (phi_incr_cost): Likewise.
8399 (ncd_with_phi): Likewise.
8400 (all_phi_incrs_profitable): Likewise.
8401
8402 2016-01-17 Jakub Jelinek <jakub@redhat.com>
8403
8404 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
8405 -Wmaybe-uninitialized warning.
8406
8407 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
8408
8409 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8410 (Option Summary): Update to reflect new section and moved options.
8411 (C++ Dialect Options): Move -fvtable-verify and related options.
8412 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
8413 and profiling-related options.
8414 (Optimization Options): Move profile generation options and
8415 -fstack-protector and related options.
8416 (Instrumentation Options): New section incorporating moved options.
8417 (Code Generation Options): Move -finstrument-functions and
8418 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
8419
8420 2016-01-16 Tom de Vries <tom@codesourcery.com>
8421
8422 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
8423
8424 2016-01-16 Tom de Vries <tom@codesourcery.com>
8425
8426 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
8427
8428 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
8429
8430 * hash-table.h (hash_table::empty): Turn into an inline wrapper
8431 that checks whether the table is already empty. Rename the
8432 original implementation to...
8433 (hash_table::empty_slot): ...this new private function.
8434
8435 2016-01-15 David Malcolm <dmalcolm@redhat.com>
8436
8437 PR diagnostic/68899
8438 * diagnostic-show-locus.c (layout::print_source_line): Move x
8439 offset of line until after call to
8440 get_line_width_without_trailing_whitespace.
8441
8442 2016-01-15 Jeff Law <law@redhat.com>
8443
8444 PR tree-optimization/69270
8445 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
8446 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
8447 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
8448 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
8449 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
8450 ssa_name_has_boolean_range and constant_boolean_node.
8451
8452 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
8453
8454 PR rtl-optimization/69030
8455 * lra-spills.c (remove_pseudos): Check nrefs and make the function
8456 returning bool.
8457 (spill_pseudos): Delete debug insn for dead pseudo.
8458 (lra_spill): Initiate spill_hard_reg and slots memory separately.
8459
8460 2016-01-15 Jiong Wang <jiong.wang@arm.com>
8461
8462 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
8463 New.
8464 (TYPES_UNOPUS): Likewise.
8465 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
8466 builtin type, from UNOP to UNOPUS.
8467 (lbtruncuv4sf): Likewise.
8468 (lbtruncuv2df): Likewise.
8469 (lrounduv2sf): Likewise.
8470 (lrounduv4sf): Likewise.
8471 (lrounduv2df): Likewise.
8472 (lroundusf): Likewise.
8473 (lroundusf): Likewise.
8474 (lceiluv2sf): Likewise.
8475 (lceiluv4sf): Likewise.
8476 (lceiluv2df): Likewise.
8477 (lceilusf): Likewise.
8478 (lceiludf): Likewise.
8479 (lflooruv2sf): Likewise.
8480 (lflooruv4sf): Likewise.
8481 (lflooruv2df): Likewise.
8482 (lfloorusf): Likewise.
8483 (lfloorudf): Likewise.
8484 (lfrintnuv2sf): Likewise.
8485 (lfrintnuv4sf): Likewise.
8486 (lfrintnuv2df): Likewise.
8487 (lfrintnusf): Likewise.
8488 (lfrintnudf): Likewise.
8489 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
8490 conversion.
8491 (vcvtq_u32_f32): Likewise.
8492 (vcvtq_u64_f64): Likewise.
8493 (vcvta_u32_f32): Likewise.
8494 (vcvtaq_u32_f32): Likewise.
8495 (vcvtaq_u64_f64): Likewise.
8496 (vcvtm_u32_f32): Likewise.
8497 (vcvtmq_u32_f32): Likewise.
8498 (vcvtmq_u64_f64): Likewise.
8499 (vcvtn_u32_f32): Likwise.
8500 (vcvtnq_u32_f32): Likewise.
8501 (vcvtnq_u64_f64): Likewise.
8502 (vcvtp_u32_f32): Likewise.
8503 (vcvtpq_u32_f32): Likewise.
8504 (vcvtpq_u64_f64): Likewise.
8505 (vcvtmd_u64_f64): Likewise.
8506 (vcvtms_u32_f32): Likewise.
8507 (vcvtad_u64_f64): Likewise.
8508 (vcvtas_u32_f32): Likewise.
8509 (vcvtnd_u64_f64): Likewise.
8510 (vcvtns_u32_f32): Likewise.
8511 (vcvtpd_u64_f64): Likewise.
8512 (vcvtps_u32_f32): Likewise.
8513
8514 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8515
8516 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
8517 CSEL of zero_extended registers.
8518
8519 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8520
8521 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8522 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
8523
8524 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8525
8526 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
8527 false when argument string is not found in the attributes table
8528 at all.
8529
8530 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
8531
8532 PR target/68609
8533 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
8534 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
8535 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
8536 precision estimate.
8537
8538 2016-01-15 Richard Biener <rguenther@suse.de>
8539
8540 PR tree-optimization/66856
8541 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
8542 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
8543 (vect_create_new_slp_node): Increment stmt reference count.
8544 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
8545 an SLP tree before swapping operands.
8546 (vect_build_slp_tree): Likewise.
8547 (destroy_bb_vec_info): Free stmt info after SLP instances.
8548 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
8549 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
8550 (STMT_VINFO_NUM_SLP_USES): New macro.
8551
8552 2016-01-15 Richard Biener <rguenther@suse.de>
8553
8554 PR debug/69137
8555 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
8556 (add_linkage_name): ... here.
8557 (gen_typedef_die): Use add_linkage_name_raw instead of
8558 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
8559 if necessary.
8560
8561 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
8562
8563 * gimplify.c (oacc_default_clause): Decode reference and pointer
8564 types for both kernels and parallel regions.
8565
8566 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
8567
8568 PR middle-end/69246
8569 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
8570
8571 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8572
8573 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
8574 (convert_scalars_to_vector): Likewise.
8575
8576 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
8577
8578 * doc/extend.texi (Type Traits): Fix grammar.
8579
8580 2016-01-15 Martin Jambor <mjambor@suse.cz>
8581
8582 * tree-inline.c (remap_decl): Use existing dclarations if
8583 remapping a type and prevent_decl_creation_for_types.
8584 (replace_locals_stmt): Do an initial remapping of non-VLA typed
8585 decls first. Do real remapping with
8586 prevent_decl_creation_for_types set.
8587 * tree-inline.h (copy_body_data): New field
8588 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
8589 padding.
8590
8591 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8592
8593 * config/s390/s390.opt (mmvcle): More verbose help text.
8594
8595 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8596
8597 * config/s390/s390.opt: Add period to -mzvector option text.
8598
8599 2016-01-15 Richard Biener <rguenther@suse.de>
8600
8601 PR tree-optimization/68961
8602 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
8603 of invariants in stores again.
8604
8605 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
8606
8607 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
8608
8609 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8610
8611 * config/i386/i386.c (ix86_expand_branch): Don't split
8612 DI mode xor instruction to SI mode.
8613
8614 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8615
8616 PR ipa/68148
8617 * ipa-icf.c (sem_function::merge): Virtual functions may become
8618 reachable even if they address is not taken and there are no
8619 idrect calls.
8620
8621 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8622
8623 * lto-streamer-out.c (subtract_estimated_size): New function.
8624 (get_symbol_initial_value): Use it.
8625
8626 2016-01-15 Christian Bruel <christian.bruel@st.com>
8627
8628 PR target/65837
8629 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
8630 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
8631 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
8632 use add_builtin_function_ext_scope instead of add_builtin_function.
8633 (neon_set_p, neon_crypto_set_p): Remove.
8634 (arm_init_builtins): Always call arm_init_neon_builtins and
8635 arm_init_crypto_builtins.
8636 (arm_expand_builtin): Check that builtins are allowed for the arch.
8637 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
8638 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
8639 arm_init_neon_builtins call.
8640
8641 2016-01-15 Richard Biener <rguenther@suse.de>
8642
8643 PR tree-optimization/69117
8644 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
8645 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
8646 of the leader conservatively.
8647 (free_scc_vn): Restore original SSA name infos.
8648
8649 2016-01-14 Jeff Law <law@redhat.com>
8650
8651 PR tree-optimization/69270
8652 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
8653 single bit of precision, verify it's also unsigned.
8654 (record_edge_info): Use constant_boolean_node rather than fold_convert
8655 to convert boolean_true/boolean_false to the right type.
8656
8657 2016-01-14 Richard Henderson <rth@redhat.com>
8658
8659 PR rtl-opt/69014
8660 * loop-doloop.c (record_reg_sets): New.
8661 (doloop_optimize): Reject the transform if the sequence
8662 clobbers registers live at the end of the loop block.
8663 (doloop_optimize_loops): Enable df_live if needed.
8664
8665 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8666
8667 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
8668 * gcc/config/rs6000/rs6000.c: Likewise.
8669 * gcc/config/rs6000/rs6000.h: Likewise.
8670 * gcc/config/rs6000/rs6000.md: Likewise.
8671 * gcc/doc/extend.texi: Likewsie.
8672
8673 2016-01-14 Jeff Law <law@redhat.com>
8674
8675 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
8676 typo.
8677
8678 2016-01-14 Richard Henderson <rth@redhat.com>
8679
8680 PR c/69272
8681 PR tree-opt/68964
8682 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
8683 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
8684 instead of builtin_decl_declared_p to test for declaration.
8685
8686 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
8687
8688 * doc/loop.texi (Loop Analysis and Representation): Document
8689 loop_depth function.
8690
8691 2016-01-14 Tom de Vries <tom@codesourcery.com>
8692
8693 PR tree-optimization/68773
8694 * omp-low.c (expand_omp_target): Don't set force_output.
8695 * varpool.c (varpool_node::get_create): Same.
8696 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
8697 offload_funcs with force_output.
8698
8699 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8700
8701 PR debug/69244
8702 * lra-eliminations.c (move_plus_up): Don't change anything if either
8703 the outer or inner subreg mode is not MODE_INT.
8704 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
8705 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
8706
8707 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
8708
8709 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
8710 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
8711 reduc_uplus_@var{m}): Remove.
8712 * expr.c (expand_expr_real_2): Remove expansion path for
8713 reduc_[us](min|max|plus) optabs.
8714 * optabs-tree.c (scalar_reduc_to_vector): Remove.
8715 * optabs-tree.h (scalar_reduc_to_vector): Remove.
8716 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
8717 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
8718 * tree-vect-loop.c (vectorizable_reduction): Remove test for
8719 reduc_[us](min|max|plus) optabs.
8720
8721 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
8722
8723 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
8724 (reduc_plus_scal_v2sf): New.
8725 (reduc_smax_v2sf): Rename to...
8726 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
8727 (reduc_smin_v2sf): Rename to...
8728 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
8729
8730 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
8731
8732 * alias.c (compare_base_symbol_refs): New function.
8733 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
8734 it.
8735
8736 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8737
8738 PR middle-end/68146
8739 PR tree-optimization/69155
8740 * tree-complex.c: Include cfganal.h.
8741 (phis_to_revisit): New variable.
8742 (extract_component): Add phiarg_p argument. Assert that returned
8743 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
8744 (update_phi_components): Partly rewrite to use loop over real/imag
8745 components instead of code duplication. If extract_component returns
8746 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
8747 create_tmp_reg into the PHI node instead, and mention the phi triplet
8748 in phis_to_revisit.
8749 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
8750 in phis_to_revisit at the end.
8751
8752 2016-01-14 Richard Biener <rguenther@suse.de>
8753
8754 PR tree-optimization/68060
8755 * tree-vect-loop.c (vect_is_simple_reduction): Check the
8756 outer loop reduction is only used in the inner loop before
8757 detecting a double reduction.
8758
8759 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8760
8761 PR target/68269
8762 * combine.c (expand_field_assignment): Punt if compute_mode is
8763 unsupported scalar mode.
8764
8765 2016-01-14 Richard Biener <rguenther@suse.de>
8766
8767 PR tree-optimization/66856
8768 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
8769 SLP node only if it built successfully.
8770 (vect_analyze_slp_instance): Adjust.
8771
8772 2016-01-14 Jeff Law <law@redhat.com>
8773
8774 PR tree-optimization/69270
8775 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
8776 (record_edge_info): Use it. Convert boolean_{true,false}_node
8777 to the type of op0.
8778
8779 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
8780
8781 PR ipa/66487
8782 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
8783 use block_ultimate_origin
8784 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
8785
8786 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
8787
8788 * doc/invoke.texi (Submodel Options): Rename section to
8789 "Machine-Dependent Options" to better reflect its content.
8790 Rewrite introductory text to remove archaic CPU names.
8791 Update references.
8792
8793 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
8794
8795 * doc/invoke.texi (Code Gen Options): Move section up in file,
8796 before target-specific options. Update menu and option summary
8797 to reflect the new section ordering.
8798
8799 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
8800
8801 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
8802 (C++ Dialect Options): Add cross-reference to -std option.
8803 * doc/standards.texi (C++ Language): Document C++14 support.
8804
8805 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8806
8807 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
8808 for pack/unpack functions for __ibm128.
8809 (PACK_IF): Likewise.
8810 (UNPACK_IF): Likewise.
8811
8812 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
8813 support for __ibm128 pack/unpack functions.
8814 (rs6000_invalid_builtin): Likewise.
8815 (rs6000_init_builtins): Likewise.
8816 (rs6000_opt_masks): Likewise.
8817
8818 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
8819 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
8820 functions
8821 (RS6000_BTM_COMMON): Likewise.
8822
8823 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
8824 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
8825 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
8826 128-bit floating point. Add support for the double values to be
8827 in Altivec registers for TF/IF packing and unpacking, but restrict
8828 TD packing sub-fields to be FPR registers. Don't allow overlapped
8829 register support for packing. Allow pack inputs to be memory
8830 locations. Don't build generator functions for unpack<mode>_dm
8831 and unpack<mode>_nodm.
8832 (unpack<mode>_dm): Likewise.
8833 (unpack<mode>_nodm): Likewise.
8834 (pack<mode>): Likewise.
8835
8836 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
8837 built-in functions to pack/unpack explicit __ibm128 values.
8838 (__builtin_unpack_ibm128): Likewise.
8839
8840 * doc/extend.texi (PowerPC Built-in Functions): Document
8841 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
8842
8843 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
8844
8845 PR c/66208
8846 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
8847 Add new arg loc and pass it down as context.
8848 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
8849 to the location to use for the warning.
8850 (check_function_arguments): New arg loc. All callers changed. Pass
8851 it to check_function_nonnull.
8852 * c-common.h (check_function_arguments): Adjust declaration.
8853
8854 2016-01-13 Jakub Jelinek <jakub@redhat.com>
8855
8856 PR tree-optimization/69156
8857 * gimple.c (validate_type): Removed.
8858 (gimple_builtin_call_types_compatible_p): Use
8859 useless_type_conversion_p instead of validate_type.
8860 * value-prof.c (gimple_stringop_fixed_value): Fold
8861 icall_size to correct type.
8862
8863 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
8864
8865 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
8866 effects.
8867
8868 2016-01-13 Richard Henderson <rth@redhat.com>
8869
8870 PR tree-opt/68964
8871 * target.def (builtin_tm_load, builtin_tm_store): Remove.
8872 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
8873 (ix86_builtin_tm_store): Remove.
8874 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8875 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8876 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8877 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8878 * doc/tm.texi: Rebuild.
8879
8880 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
8881 (BUILT_IN_TM_MEMCPY_RTWN): New.
8882 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
8883 fallback from vector to integer helpers.
8884 (build_tm_load): Handle vector types directly, instead of
8885 via target hook.
8886 (build_tm_store): Likewise.
8887 (expand_assign_tm): Prepare for register types not handled by
8888 the above. Copy them to memory and use memcpy.
8889 * tree.c (tm_define_builtin): New.
8890 (find_tm_vector_type): New.
8891 (build_tm_vector_builtins): New.
8892 (build_common_builtin_nodes): Call it.
8893
8894 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
8895
8896 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
8897 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
8898
8899 2016-01-13 Tom de Vries <tom@codesourcery.com>
8900
8901 PR tree-optimization/69169
8902 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
8903 handled_struct_type param.
8904 (create_variable_info_for, intra_create_variable_infos): Call
8905 create_variable_info_for_1 with extra arg.
8906
8907 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
8908
8909 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
8910 and "armv8.1-a+crc" entries.
8911
8912 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
8913
8914 PR target/69228
8915 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
8916 Change first operand predicate from register_or_constm1_operand
8917 to register_operand.
8918 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
8919 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
8920 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
8921 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
8922 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
8923 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
8924 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
8925 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
8926 comparison with constm1_rtx from vec_prefetch_gen part.
8927
8928 2016-01-13 Richard Biener <rguenther@suse.de>
8929
8930 PR tree-optimization/69013
8931 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
8932 Exchange assert for a test.
8933
8934 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8935
8936 PR target/69247
8937 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
8938
8939 2016-01-13 Richard Biener <rguenther@suse.de>
8940
8941 PR tree-optimization/69242
8942 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
8943 assert with a check.
8944
8945 2016-01-13 Richard Biener <rguenther@suse.de>
8946
8947 PR tree-optimization/69186
8948 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8949 Properly guard vect_update_misalignment_for_peel call.
8950
8951 2016-01-12 Jeff Law <law@redhat.com>
8952
8953 PR tree-optimization/pr67755
8954 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
8955 "need_profile_correction".
8956 (thread_block_1): Initialize new field to false by default. If we
8957 have multiple thread paths through a common joiner to different
8958 final targets, then set new field to true.
8959 (compute_path_counts): Only do count adjustment when it's really
8960 needed.
8961
8962 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8963
8964 * doc/invoke.texi (Spec Files): Move section down in file, past
8965 all command-line option descriptions.
8966
8967 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8968
8969 PR middle-end/54809
8970 * doc/gty.texi: Remove documentation of mark_hook.
8971 * gengtype.c (struct write_types_data): Remove code to support
8972 mark_hook attribute.
8973 (walk_type): Likewise.
8974 (write_func_for_structure): Likewise.
8975
8976 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8977
8978 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
8979 Directory Options, and -specs= to Overall Options.
8980 (Overall Options): Adjust similarly. Reorder to group related
8981 options together. Make -specs= cross-reference the spec file details.
8982 (Directory Options): Adjust similarly.
8983
8984 2016-01-12 Jeff Law <law@redhat.com>
8985
8986 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
8987
8988 2016-01-12 Olivier Hainque <hainque@adacore.com>
8989
8990 * gcc.c (spec_undefvar_allowed): New global.
8991 (process_command): Set to true when running for --version or --help,
8992 alone or together.
8993 (getenv_spec_function): When the variable is not defined, use the
8994 variable name as the variable value if we're allowed not to issue
8995 a fatal error.
8996
8997 2016-01-12 Bin Cheng <bin.cheng@arm.com>
8998
8999 PR tree-optimization/68911
9000 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
9001 information computed for expression "init + nit * step".
9002
9003 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9004
9005 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
9006 about name of GCC executable. Remove deleted node from menu.
9007 (Directory Options) <-B>: Remove cross-reference to deleted node.
9008 (Target Options): Delete section.
9009
9010 2016-01-12 Christian Bruel <christian.bruel@st.com>
9011
9012 PR target/69180
9013 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
9014 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
9015
9016 2016-01-12 Jakub Jelinek <jakub@redhat.com>
9017
9018 PR target/69198
9019 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
9020 aligned_mem is properly set for AVX512-VL floating point masked
9021 stores.
9022
9023 PR target/69175
9024 * ifcvt.c (cond_exec_process_if_block): When removing the last
9025 insn from then_bb, remove also any possible barriers that follow it.
9026
9027 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
9028
9029 PR target/68456
9030 PR target/69226
9031 * config/i386/iamcu.h (SIZE_TYPE): New macro.
9032 (PTRDIFF_TYPE): Likewise.
9033 (WCHAR_TYPE): Likewise.
9034 (WCHAR_TYPE_SIZE): Likewise.
9035 (STDINT_LONG32): Likewise.
9036
9037 2016-01-12 Richard Biener <rguenther@suse.de>
9038
9039 PR tree-optimization/69053
9040 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
9041 convert initial value for cond reductions.
9042
9043 2016-01-12 Richard Biener <rguenther@suse.de>
9044
9045 PR tree-optimization/69007
9046 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
9047 widen_sum after dot_prod and sad.
9048
9049 2016-01-12 Richard Biener <rguenther@suse.de>
9050
9051 PR tree-optimization/69168
9052 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
9053 pattern stmt SLP type.
9054 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
9055 end up unused so cope with that case.
9056
9057 2016-01-12 Richard Biener <rguenther@suse.de>
9058
9059 PR tree-optimization/69157
9060 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
9061 stmts def type only during analyze phase.
9062 (vectorizable_call): Likewise.
9063 (vectorizable_simd_clone_call): Likewise.
9064 (vectorizable_conversion): Likewise.
9065 (vectorizable_assignment): Likewise.
9066 (vectorizable_shift): Likewise.
9067 (vectorizable_operation): Likewise.
9068 (vectorizable_store): Likewise.
9069 (vectorizable_load): Likewise.
9070
9071 2016-01-12 Richard Biener <rguenther@suse.de>
9072
9073 PR tree-optimization/69174
9074 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
9075 space.
9076 (vectorizable_load): Properly compute the number of loads needed
9077 for permuted strided SLP loads and do not spuriously assign
9078 to SLP_TREE_VEC_STMTS.
9079
9080 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
9081
9082 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
9083 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
9084 (MD_EXEC_PREFIX): Remove.
9085 (MD_STARTFILE_PREFIX) Removee.
9086 (FILE_NAME_ABSOLUTE_P): Remove.
9087 (CPP_SPEC): Do not read macros from sys/version.h.
9088 (LINK_COMMAND_SPEC): Remove.
9089 (LOCAL_INCLUDE_DIR): Remove.
9090 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
9091 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
9092 (POST_LINK_SPEC): Define to invoke stubify after linker
9093 (LIBSTDCXX): Remove define
9094 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
9095 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
9096 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
9097 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
9098 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
9099 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
9100 (i386_djgpp_asm_named_section): Add propotype of new procedure
9101
9102 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
9103 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
9104 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
9105 in config/i386/djgpp.h).
9106 (STANDARD_STARTFILE_PREFIX_2): Define identical to
9107 STANDARD_STARTFILE_PREFIX_1.
9108 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
9109 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
9110 installation errors.
9111 (MAX_OFILE_ALIGNMENT): Define to 128.
9112 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
9113
9114 * config/i386/djgpp.c: New file. Add implementation of
9115 i386_djgpp_asm_named_section.
9116
9117 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
9118
9119 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
9120 Add rule for building djgpp.o.
9121
9122 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9123
9124 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
9125 (rtx_is_swappable_p): Reductions are swappable.
9126 (insn_is_swappable_p): V2DF reductions are swappable.
9127
9128 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
9129
9130 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
9131 reloads for other unsupported memory operands.
9132
9133 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9134 Jim Wilson <jim.wilson@linaro.org>
9135
9136 PR target/69194
9137 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
9138 copy_to_mode_reg instead of force_reg.
9139
9140 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9141
9142 PR target/69225
9143 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
9144 TARGET_80387 is true.
9145
9146 2016-01-11 Jakub Jelinek <jakub@redhat.com>
9147
9148 PR target/69071
9149 * lra-eliminations.c (move_plus_up): Only move plus up
9150 if subreg of the constant can be simplified into constant
9151 and use the simplified subreg of the constant instead of
9152 the original constant.
9153
9154 * fold-const.c (fold_convertible_p): Don't return true
9155 for conversion of VECTOR_TYPE to same sized integral type.
9156 (fold_convert_loc): Fix up formatting. Fold conversion of
9157 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
9158 instead of NOP_EXPR.
9159
9160 PR tree-optimization/69214
9161 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
9162 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9163 Formatting fix.
9164
9165 PR tree-optimization/69207
9166 * tree-vect-slp.c (vect_get_constant_vectors): For
9167 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
9168 fold_convertible_p to vector_type's element type, and always
9169 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
9170
9171 2016-01-11 Richard Biener <rguenther@suse.de>
9172
9173 PR tree-optimization/69173
9174 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
9175 fixup the cycle if all stmts are in a pattern.
9176
9177 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
9178
9179 PR middle-end/68999
9180 * alias.c (base_alias_check): Move check for addresses with
9181 alignment ANDs before the call for compare_base_decls.
9182 (memrefs_conflict_p): Return -1 for different decls
9183 that went through alignment adjustments.
9184
9185 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9186
9187 PR rtl-optimization/68796
9188 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
9189 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
9190 and QImode comparisons against zero with CC_NZmode.
9191 * config/aarch64/iterators.md (short_mask): New mode_attr.
9192
9193 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9194
9195 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
9196 (<avx512>_store<mode>_mask): Likewise.
9197
9198 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
9199 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9200
9201 PR rtl-optimization/68841
9202 * ifcvt.c (struct noce_if_info): Add orig_x field.
9203 (bbs_ok_for_cmove_arith): Add to_rename parameter.
9204 Don't record conflicts on to_rename if it's present.
9205 Allow memory destinations in sets.
9206 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
9207 blocks, passing orig_x to the checks.
9208 (noce_process_if_block): Set if_info->orig_x appropriately.
9209
9210 2016-01-11 Tom de Vries <tom@codesourcery.com>
9211
9212 PR tree-optimization/69069
9213 * tree-parloops.c (create_parallel_loop): Add missing phi args.
9214
9215 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
9216
9217 PR rtl-optimization/68920
9218 * config/i386/i386.c (ix86_option_override_internal): Restrict number
9219 of conditional moves for RTL if-conversion to 1 for
9220 TARGET_ONE_IF_CONV_INSN.
9221 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
9222 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
9223 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
9224 parameter to restirct number of conditional moves for
9225 RTL if-conversion.
9226 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
9227 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
9228 conditionl moves.
9229
9230 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
9231
9232 PR bootstrap/69123
9233 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
9234 onepart vars. Fix typo in comment. Fix reversed condition in
9235 unshare test.
9236 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
9237
9238 PR bootstrap/69123
9239 * var-tracking.c (dump_onepart_variable_differences): New.
9240 (dataflow_set_different): If a detailed dump is requested,
9241 delay early returns and dump differences between onepart
9242 variables present before and after, and added variables.
9243
9244 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
9245
9246 PR target/69010
9247 * expr.c (expand_expr_real_1): For boolean vector constants
9248 with a scalar mode use const_scalar_mask_from_tree.
9249 (const_scalar_mask_from_tree): New.
9250 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
9251 assigned to a mask type to handle constants.
9252
9253 2016-01-11 Martin Jambor <mjambor@suse.cz>
9254
9255 PR ipa/69044
9256 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
9257 useless parameters if we cannot change function signature.
9258
9259 2016-01-11 Martin Jambor <mjambor@suse.cz>
9260
9261 PR ipa/66616
9262 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
9263 flag.
9264
9265 2016-01-11 Tom de Vries <tom@codesourcery.com>
9266
9267 PR tree-optimization/69109
9268 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
9269 latch with phi.
9270
9271 2016-01-11 Tom de Vries <tom@codesourcery.com>
9272
9273 PR tree-optimization/69108
9274 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
9275 res is not used in a phi.
9276
9277 2016-01-11 Yury Gribov <y.gribov@samsung.com>
9278
9279 PR 67425
9280 * common.opt (frandom-seed): Fix parameter name.
9281 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
9282
9283 2016-01-11 Tom de Vries <tom@codesourcery.com>
9284
9285 PR tree-optimization/69058
9286 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
9287 not supported.
9288
9289 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
9290
9291 * config/arc/arc.opt (mdiv-rem): Add period to the end.
9292 (mcode-density): Likewise.
9293
9294 2016-01-10 Tom de Vries <tom@codesourcery.com>
9295
9296 PR tree-optimization/69062
9297 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
9298 (parallelize_loops): Don't paralelize loop that has phi with address
9299 arg.
9300
9301 2016-01-10 Tom de Vries <tom@codesourcery.com>
9302
9303 PR tree-optimization/69039
9304 * tree-parloops.c (try_create_reduction_list): Only allow single exit
9305 phi for reduction.
9306
9307 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
9308
9309 PR middle-end/68743
9310 * match.pd: Require target has function_c99_misc before doing
9311 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
9312
9313 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
9314
9315 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
9316 use GMPINC.
9317 * configure: Regenerate.
9318
9319 2016-01-09 Jakub Jelinek <jakub@redhat.com>
9320
9321 PR middle-end/50865
9322 PR tree-optimization/69097
9323 * fold-const.h (expr_not_equal_to): New prototype.
9324 * fold-const.c: Include stringpool.h and tree-ssanames.h.
9325 (expr_not_equal_to): New function.
9326 * match.pd (X % -Y is the same as X % Y): Don't optimize
9327 unless X is known not to be equal to minimum or Y is known
9328 not to be equal to -1.
9329 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
9330 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
9331 (simplify_stmt_using_ranges): Adjust caller.
9332 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
9333 substitute_and_fold.
9334
9335 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
9336
9337 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
9338 w/o DECL_NAME.
9339
9340 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9341
9342 PR tree-optimization/69167
9343 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
9344 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
9345 ops[0] comparison.
9346 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
9347
9348 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9349 Richard Biener <rguenther@suse.de>
9350
9351 PR tree-optimization/68707
9352 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
9353 instances that can be handled via vect_load_lanes.
9354
9355 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
9356
9357 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
9358 if we can't determine address equivalence.
9359 * alias.c (compare_base_decl): Update for changed return value of
9360 symtab_node::equal_address_to.
9361
9362 2016-01-08 Jason Merrill <jason@redhat.com>
9363
9364 PR c++/68983
9365 PR c++/67557
9366 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
9367 * expr.c (store_field): Not here.
9368 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
9369 call with TREE_ADDRESSABLE type.
9370 * tree-cfg.c (verify_gimple_call): Adjust.
9371
9372 2016-01-08 Olivier Hainque <hainque@adacore.com>
9373
9374 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
9375 libc_internal.
9376
9377 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9378
9379 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
9380 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
9381 (reduc_smin_v2sf): Rename to...
9382 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
9383 (reduc_splus_v2sf): Rename to...
9384 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
9385
9386 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9387
9388 PR tree-optimization/69162
9389 * gimplify.c (gimplify_va_arg_expr): Encode original type of
9390 valist argument in another argument.
9391 (gimplify_modify_expr): Adjust for the above change. Cleanup.
9392 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
9393 to determine the va_list type, build a MEM_REF instead of
9394 build_fold_indirect_ref.
9395
9396 PR tree-optimization/69172
9397 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
9398 gimple_build.
9399
9400 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
9401
9402 PR tree-optimization/67781
9403 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
9404 and cmpnop in two steps: first the ones not accessed in original
9405 gimple expression in a endian independent way and then the ones not
9406 accessed in the final result in an endian-specific way.
9407
9408 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9409
9410 PR tree-optimization/69083
9411 * tree-vect-slp.c (vect_get_constant_vectors): For
9412 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
9413 element type. If op is fold_convertible_p to vector_type's element
9414 type, use NOP_EXPR instead of VCE.
9415
9416 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
9417
9418 PR rtl-optimization/67778
9419 PR rtl-optimization/68634
9420 PR rtl-optimization/68909
9421 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
9422 block from the stack until done with it. Remove a superfluous
9423 bitmap set. Remove a superfluous bitmap test.
9424
9425 2016-01-07 Martin Sebor <msebor@redhat.com>
9426
9427 PR c/68966
9428 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
9429 constraint on the type of arguments.
9430
9431 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
9432
9433 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
9434 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
9435 unaligned_access on the gcc_options set.
9436 * config/arm/arm.c (arm_option_override_internal): Use
9437 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
9438
9439 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9440
9441 PR target/69140
9442 * config/i386/i386.c (ix86_frame_pointer_required): Enable
9443 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
9444
9445 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9446
9447 Revert
9448 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9449
9450 PR target/69140
9451 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9452 depending on frame_pointer_needed before remaining integer and SSE
9453 registers are saved.
9454
9455 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
9456
9457 PR 1078
9458 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
9459
9460 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
9461
9462 PR target/69171
9463 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
9464 Use the "xBm" constraint.
9465 (float<sseintvecmodelower><mode>2<mask_name><round_name):
9466 Likewise.
9467 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
9468 (sse_cvtsi2ssq<round_name>): Likewise.
9469 (sse_cvtss2si<round_name>): Likewise.
9470 (sse_cvtss2siq<round_name>): Likewise.
9471 (sse2_cvtsi2sdq<round_name>): Likewise.
9472 (sse2_cvtsd2si<round_name>): Likewise.
9473 (sse2_cvtsd2siq<round_name>): Likewise.
9474 * config/i386/subst.md (round_nimm_scalar_predicate): New
9475 predicate.
9476
9477 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
9478
9479 PR middle-end/67639
9480 * varasm.c (make_decl_rtl): Mark invalid register vars as
9481 DECL_EXTERNAL.
9482
9483 PR rtl-optimization/66206
9484 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
9485 All callers changed.
9486
9487 2016-01-07 Jakub Jelinek <jakub@redhat.com>
9488
9489 PR tree-optimization/69141
9490 * tree-ssa-pre.c: Include langhooks.h.
9491 (eliminate_dom_walker::before_dom_children): Use
9492 lang_hooks.decl_printable_name instead of
9493 cgraph_node::get ()->name ().
9494
9495 PR middle-end/68960
9496 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
9497 it and DECL_ALIGN too.
9498
9499 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
9500
9501 * config/mips/mips-ftypes.def: Sort to lexicographical order.
9502
9503 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9504
9505 PR target/69140
9506 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9507 depending on frame_pointer_needed before remaining integer and SSE
9508 registers are saved.
9509
9510 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9511
9512 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
9513 mode iterator with VSX_M2.
9514 (*p9_vecstore_<mode>): Likewise.
9515 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
9516 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
9517 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
9518 (define_split for VSX_LE128 stores): Likewise.
9519 (define_peephole2 for TImode LE swaps): Likewise.
9520 (define_split for VSX_LE128 post-reload stores): Likewise.
9521
9522 2016-01-06 Marek Polacek <polacek@redhat.com>
9523
9524 PR sanitizer/69099
9525 * convert.c (convert_to_integer_1): Adjust call to
9526 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
9527 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
9528 EXPR instead of ARG.
9529 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
9530
9531 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9532
9533 PR 1078
9534 * doc/extend.texi (RL78 Variable Attributes): New section.
9535
9536 2016-01-05 Marek Polacek <polacek@redhat.com>
9537
9538 PR c/69104
9539 * builtins.c (get_memmodel): Use expansion point location rather than
9540 the input location. Call warning_at rather than warning.
9541 (expand_builtin_atomic_compare_exchange): Likewise.
9542 (expand_builtin_atomic_load): Likewise.
9543 (expand_builtin_atomic_store): Likewise.
9544 (expand_builtin_atomic_clear): Likewise.
9545
9546 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9547
9548 PR target/68991
9549 * config/i386/i386.c (ix86_expand_vector_logical_operator):
9550 Replace nonimmediate_operand with vector_operand.
9551 * config/i386/predicates.md (vector_operand): New predicate.
9552 (general_vector_operand): Replace nonimmediate_operand with
9553 vector_operand.
9554 * config/i386/sse.md: Replace nonimmediate_operand with
9555 vector_operand and m constraint with Bm constraint on SSE
9556 patterns with 16-byte memory operand.
9557 * config/i386/subst.md (round_nimm_predicate): Replace
9558 nonimmediate_operand with vector_operand.
9559 (round_saeonly_nimm_predicate): Likewise.
9560 (round_saeonly_nimm_scalar_predicate): New.
9561
9562 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9563
9564 PR target/68991
9565 * config/i386/constraints.md (Bm): New constraint.
9566 * config/i386/predicates.md (vector_memory_operand): New
9567 predicate.
9568 * config/i386/sse.md: Replace xm with xBm in plusminus and
9569 any_logic patterns.
9570
9571 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9572
9573 PR 1078
9574 * doc/extend.texi (V850 Function Attributes): New section.
9575 (V850 Variable Attributes): New section.
9576
9577 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9578
9579 PR 1078
9580 * doc/extend.texi (MicroBlaze Function Attributes): Document
9581 interrupt_handler and fast_interrupt attributes.
9582
9583 2016-01-05 Sergei Trofimovich <siarheit@google.com>
9584
9585 PR other/60465
9586 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
9587 for local symbolic operands.
9588 * config/ia64/predicates.md (local_symbolic_operand64): New
9589 predicate.
9590
9591 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9592
9593 PR rtl-optimization/68651
9594 * combine.c (combine_simplify_rtx): Canonicalize x + x into
9595 x << 1.
9596
9597 2016-01-05 Nathan Sidwell <nathan@acm.org>
9598
9599 * alias.c (compare_base_decls): Use symtab_node::get.
9600
9601 2016-01-05 Nick Clifton <nickc@redhat.com>
9602
9603 PR target/68770
9604 * ira-costs.c (copy_cost): Initialise the t_icode field of the
9605 secondary_reload_info structure.
9606
9607 PR target/66655
9608 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
9609 decls if weak support is available.
9610
9611 2016-01-04 Martin Sebor <msebor@redhat.com>
9612
9613 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
9614
9615 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
9616
9617 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9618 OPTION_MASK_P9_DFORM.
9619
9620 * config/rs6000/constraints.md (wo constraint): New constraint for
9621 ISA 3.0 (power9).
9622
9623 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
9624 for wo constraint.
9625 (rs6000_init_hard_regno_mode_ok): Likewise.
9626
9627 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
9628 wo constraint.
9629
9630 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
9631 expanders not to have constraints. Add support for ISA 3.0 xxperm
9632 instruction. Add support for fusing xxlor with xxperm.
9633 (altivec_vperm_<mode>_internal): Likewise.
9634 (altivec_vperm_v8hiv16qi): Likewise.
9635 (altivec_vperm_<mode>v16q): Likewise.
9636 (altivec_vperm_<mode>_uns): Likewise.
9637 (vperm_v8hiv4si): Likewise.
9638 (vperm_v16qiv8hi): Likewise.
9639
9640 * doc/md.texi (RS/6000 constraints): Document wo constraint.
9641
9642 2016-01-04 Jakub Jelinek <jakub@redhat.com>
9643
9644 Update copyright years.
9645
9646 * gcc.c (process_command): Update copyright notice dates.
9647 * gcov-dump.c (print_version): Ditto.
9648 * gcov.c (print_version): Ditto.
9649 * gcov-tool.c (print_version): Ditto.
9650 * gengtype.c (create_file): Ditto.
9651 * doc/cpp.texi: Bump @copying's copyright year.
9652 * doc/cppinternals.texi: Ditto.
9653 * doc/gcc.texi: Ditto.
9654 * doc/gccint.texi: Ditto.
9655 * doc/gcov.texi: Ditto.
9656 * doc/install.texi: Ditto.
9657 * doc/invoke.texi: Ditto.
9658
9659 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9660
9661 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
9662 modes larger than TImode as TImode if NEON is not enabled.
9663
9664 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9665
9666 PR target/69100
9667 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
9668 mode for %f0-%f31 only if TARGET_FPU.
9669
9670 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9671
9672 PR target/69072
9673 * config/sparc/sparc.c (scan_record_type): Take into account subfields
9674 to compute the PACKED_P predicate.
9675 (function_arg_record_value): Minor tweaks.
9676
9677 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9678
9679 * doc/install.texi (--with-multilib-list): Describe the meaning of the
9680 option for arm*-*-* targets.
9681
9682 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
9683
9684 * doc/extend.texi (Common Function Attributes): Move docs for
9685 MSP430-specific attributes to....
9686 (MSP430 Function Attributes): ...here. Delete the redundant
9687 entries and copy-edit the remaining text.
9688 (MSP430 Variable Attributes): Use uniform format for index
9689 entries and add a cross-reference to the corresponding function
9690 attribute docs.
9691
9692 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
9693
9694 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
9695 -finite-math typo.
9696 (x86 Options): Likewise.
9697
9698 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
9699
9700 PR 1078
9701
9702 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
9703 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
9704 to corresponding attribute.
9705
9706 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
9707
9708 * doc/extend.texi (Common Function Attributes) <noplt>: Move
9709 to correct alphabetization of table. Copy-edit and correct
9710 markup.
9711 <stack_protect>: Likewise.
9712 <target_clones>: Likewise.
9713 <simd>: Likewise.
9714 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
9715 Correct punctuation.
9716 (Code Gen Options) <-fno-plt>: Copy-edit.
9717
9718 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9719
9720 PR target/68917
9721 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
9722 SI values. Explicitly convert SI to DI and vice-versa.
9723
9724 2016-01-01 Jakub Jelinek <jakub@redhat.com>
9725
9726 PR tree-optimization/69070
9727 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
9728 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
9729
9730 PR sanitizer/69055
9731 * ubsan.c (ubsan_instrument_float_cast): Call
9732 initialize_sanitizer_builtins.
9733
9734 PR target/69015
9735 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
9736 \f
9737 Copyright (C) 2016 Free Software Foundation, Inc.
9738
9739 Copying and distribution of this file, with or without modification,
9740 are permitted in any medium without royalty provided the copyright
9741 notice and this notice are preserved.