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