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