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