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