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