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