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