1 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2 Richard Biener <rguenth@suse.de>
5 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
6 set_mem_attributes if tem is SSA_NAME which got expanded
9 2016-02-24 Richard Biener <rguenther@suse.de>
11 PR tree-optimization/69907
12 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
13 end of permutations for BB vectorization.
15 2016-02-24 Christian Bruel <christian.bruel@st.com>
17 * config/arm/arm-c.c (arm_option_override): Initialize
18 target_option_current_node.
19 * config/arm/arm.c (arm_pragma_target_parse): Replace
20 build_target_option_node call by target_option_current_node.
21 Set target_option_current_node.
24 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
27 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
28 define_insn_and_split to define_insn.
29 (zero_extendqi<mode>2_dot2): Same.
30 (extendqi<mode>2_dot): Same.
31 (extendqi<mode>2_dot2): Same.
33 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
35 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
36 and add bypass for AES{D,E} and AESMC pairs.
37 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
40 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
42 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
43 series for reciprocal square root in Exynos M1.
45 2016-02-23 Martin Sebor <msebor@redhat.com>
48 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
49 __builtin_alloca_with_align.
51 2016-02-23 Richard Henderson <rth@redhat.com>
53 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
54 (ix86_register_pragmas): Remove __seg_tls.
55 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
56 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
57 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
58 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
59 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
60 * doc/extend.texi (__seg_tls): Remove item.
62 2016-02-23 Richard Biener <rguenther@suse.de>
64 * alloc-pool.h (struct allocation_object): Make id member
65 conditional on CHECKING_P again.
66 (get_instance): Adjust.
67 (base_pool_allocator): Likewise.
69 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
71 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
72 (parallelize_loops): In OpenACC kernels mode, set n_threads to
74 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
76 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
78 2016-02-23 Richard Biener <rguenther@suse.de>
80 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
81 * bitmap.h (struct bitmap_usage): Likewise.
82 (bitmap_move): Declare.
83 * bitmap.c (register_overhead): Take size_t argument.
84 (bitmap_move): New function.
85 * df-problems.c (df_rd_transfer_function): Use bitmap_move
86 to properly account overhead.
87 * tree.c (free_node): Use tree_size.
89 2016-02-23 Jakub Jelinek <jakub@redhat.com>
92 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
93 when inverting comparison.
96 * common.opt (Wunreachable-code): Add Warning flag.
98 2016-02-23 Mark Wielaard <mjw@redhat.com>
99 Jakub Jelinek <jakub@redhat.com>
102 * cgraphunit.c (check_global_declaration): Check main_input_filename
103 and DECL_SOURCE_FILE are not NULL.
105 2016-02-23 Martin Jambor <mjambor@suse.cz>
107 PR tree-optimization/69666
108 * tree-sra.c (sra_modify_assign): Do not attempt to create
109 default_def replacements for unscalarizable regions.
111 2016-02-20 Mark Wielaard <mjw@redhat.com>
114 * cgraphunit.c (check_global_declaration): Check level of
115 warn_unused_const_variable and main_input_filename.
116 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
117 (-Wunused-variable): For C implies -Wunused-const-variable=1.
118 (-Wunused-const-variable): Explain levels 1 and 2.
120 2016-02-22 Jakub Jelinek <jakub@redhat.com>
123 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
124 identical arguments. Formatting and spelling fixes.
127 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
132 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
133 and m68k-devices.def.
134 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
135 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
137 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
139 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
140 and HImode registers.
142 2016-02-22 Richard Biener <rguenther@suse.de>
144 PR tree-optimization/69882
145 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
146 preserve permutations present because of gaps.
147 (vect_supported_load_permutation_p): Always continue checking
148 permutations after vect_attempt_slp_rearrange_stmts.
150 2016-02-22 Bin Cheng <bin.cheng@arm.com>
152 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
153 min_profitable_estimate, rather than min_profitable_iters.
155 2016-02-22 Jakub Jelinek <jakub@redhat.com>
158 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
159 SImode for last match_operand.
161 2016-02-22 Martin Liska <mliska@suse.cz>
163 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
164 return bitsize - 1 as the return value.
166 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
170 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
171 Handle negative shift counts.
172 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
173 force_reg on the shift constant.
174 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
175 (lshrsi3_d): Handle negative shift counts.
177 2016-02-22 Richard Biener <rguenther@suse.de>
178 Tom de Vries <tom@codesourcery.com>
180 * graph.c: Include dumpfile.h.
181 (print_graph_cfg): Split into three overloads.
182 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
184 2016-02-22 Tom de Vries <tom@codesourcery.com>
186 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
189 2016-02-22 Richard Biener <rguenther@suse.de>
192 * ipa-inline-transform.c (inline_call): When not updating
193 overall summaries adjust self size by the growth estimate.
194 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
195 hash-set, do not update overall summaries here. Renamed from ...
196 (inline_to_all_callers): ... this which is now wrapping the
197 above and performing delayed overall summary update.
198 (early_inline_small_functions): Delay updating of the overall
201 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
203 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
206 2016-02-19 Jakub Jelinek <jakub@redhat.com>
209 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
210 :%* in %:gt() argument.
211 (greater_than_spec_func): Adjust for expecting only numbers,
212 if there are more than two numbers, compare the last two.
214 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
216 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
217 -Wnarrowing with -std.
219 2016-02-19 Jakub Jelinek <jakub@redhat.com>
222 * expr.c (store_field): Don't use bit-field path if exp is
223 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
224 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
225 and the assignment can be performed by bitwise copy. Formatting
229 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
230 call copy_reg_eh_region_note_forward on before and/or after sequences
231 and remove note from insn if it no longer can throw.
234 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
237 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
239 * config/s390/vector.md: Add missing commutative operand markers
240 to the patterns which qualify for one.
241 * config/s390/vx-builtins.md: Likewise.
243 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
245 * config/s390/vector.md (VI, VI_QHS): Add single element vector
246 types to mode iterators.
247 (vec_double): ... and mode attribute.
248 * config/s390/vx-builtins.md (non_vec_int): Likewise.
250 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
252 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
253 Change the predicate of op2 from nonimmediate to general and let
254 reload fix it if necessary.
256 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
258 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
260 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
262 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
265 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
267 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
268 * config/s390/s390.c (s390_expand_vec_movstr): New function.
269 * config/s390/s390.md ("movstr<P:mode>"): Call
270 s390_expand_vec_movstr.
272 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
274 * config/s390/s390.md: Add missing output modifier for operand 1
275 to print it as address properly.
277 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
279 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
280 * config/s390/2964.md: New file.
281 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
282 of insn grouping attributes depending on the CPU level.
283 (s390_get_unit_mask): New function.
284 (s390_sched_score): Remove the OOO from the scheduling macros.
285 Add loop to calculate a score for the instruction mix.
286 (s390_sched_reorder): Likewise plus improve debug output.
287 (s390_sched_variable_issue): Rename macros as above. Calculate
288 the unit distances after actually scheduling an insn. Improve
290 (s390_sched_init): Clear last_scheduled_unit_distance array.
291 * config/s390/s390.md: Include 2964.md.
293 2016-02-18 Jakub Jelinek <jakub@redhat.com>
296 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
297 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
298 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
299 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
300 *avx512f_<code>v8div16qi2_mask_1): New insns.
302 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
305 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
308 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
309 earlyclobber from target. Use wF constraint for fused memory
311 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
313 2016-02-18 Jakub Jelinek <jakub@redhat.com>
314 Martin Liska <mliska@suse.cz>
317 * cfgexpand.c (asan_sanitize_stack_p): New function.
318 (partition_stack_vars): Use the function.
319 (expand_stack_vars): Likewise.
320 (defer_stack_allocation): Likewise.
321 (expand_used_vars): Likewise.
323 2016-02-18 Richard Biener <rguenther@suse.de>
326 * fold-const.c (operand_equal_p): Properly compare offsets for
327 IMAGPART_EXPR and ARRAY_REF.
329 2016-02-18 Nick Clifton <nickc@redhat.com>
333 * config/arm/arm.c (arm_option_override_internal): Disable
334 interworking if the target does not support thumb instructions.
335 (arm_reload_in_hi): Handle the case where a register to register
336 move needs reloading because there is no simple pattern to handle
338 (arm_reload_out_hi): Likewise.
340 2016-02-18 Richard Biener <rguenther@suse.de>
343 * match.pd: Don't use fold_binary or fold_unary for folding
346 2016-02-17 Jakub Jelinek <jakub@redhat.com>
349 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
350 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
351 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
352 warn on gimple_no_warning_p statements.
354 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
356 * doc/extend.texi (C++ Attributes): Correct description of
357 warn_unused type attribute.
359 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
361 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
364 2016-02-17 Richard Biener <rguenther@suse.de>
366 PR rtl-optimization/69609
367 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
368 (find_traces_1_round): When ending a trace update cached priority
370 (bb_to_key): Use cached priority when available.
371 (copy_bb): Initialize cached priority.
372 (reorder_basic_blocks_software_trace_cache): Likewise.
374 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
377 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
379 (aarch64_comparison_operator): Break overly long line into two.
380 (aarch64_comparison_operation): Likewise.
381 * config/aarch64/aarch64.md (cstorecc4): Use
382 aarch64_comparison_operator_mode instead of
383 aarch64_comparison_operator.
384 (cstore<mode>4): Likewise.
385 (aarch64_cstore<mode>): Likewise.
386 (*cstoresi_insn_uxtw): Likewise.
387 (cstore<mode>_neg): Likewise.
388 (*cstoresi_neg_uxtw): Likewise.
390 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
393 * config/arm/predicates.md (arm_comparison_operator_mode):
395 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
396 instead of arm_comparison_operator.
397 (*mov_negscc): Likewise.
398 (*mov_notscc): Likewise.
399 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
400 (*thumb2_mov_negscc): Likewise.
401 (*thumb2_mov_negscc_strict_it): Likewise.
402 (*thumb2_mov_notscc): Likewise.
403 (*thumb2_mov_notscc_strict_it): Likewise.
405 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
407 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
410 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
412 * config/visium/visium.c (machine_libfunc_index): New enum.
413 (machine_libfuncs): New structure.
414 (visium_libfuncs): New static variable.
415 (TARGET_INIT_LIBFUNCS): Define to...
416 (visium_init_libfuncs): ...this. New function.
417 (expand_block_move_4): Use the appropriate libfunc.
418 (expand_block_move_2): Likewise.
419 (expand_block_move_1): Likewise.
420 (expand_block_set_4): Likewise.
421 (expand_block_set_2): Likewise.
422 (expand_block_set_1): Likewise.
423 (visium_trampoline_init): Likewise.
425 2016-02-17 Nick Clifton <nickc@redhat.com>
427 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
428 TI's devices.csv file as of March 2016.
430 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
433 * opts-global.c (handle_common_deferred_options): Introduce and
434 initialize two global variables to remember command-line options
435 specifying a stack-limiting register.
436 * opts.h: Add extern declarations of the two new global variables.
437 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
438 variable based on the values of the two new global variables.
440 2016-02-16 Jakub Jelinek <jakub@redhat.com>
443 * common.opt (Wnonnull-compare): New warning.
444 * doc/invoke.texi (-Wnonnull): Remove text about comparison
445 of arguments against NULL.
446 (-Wnonnull-compare): Document.
447 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
448 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
449 * passes.def (pass_warn_nonnull_compare): Add.
450 * gimple-ssa-nonnull-compare.c: New file.
452 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
454 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
455 AARCH64_EXTRA_TUNE_RECIP_SQRT.
457 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
459 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
460 reciprocal sqrt for -mlow-precision-recip-sqrt.
462 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
463 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
465 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
466 always use lane loads to construct non-constant vectors.
468 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
470 * config/aarch64/aarch64.md
471 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
472 constraints for operand 3.
473 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
475 2016-02-16 Jakub Jelinek <jakub@redhat.com>
476 Richard Biener <rguenther@suse.de>
478 PR tree-optimization/69820
479 * tree-vect-patterns.c (type_conversion_p): Return false if
480 *orig_type is unsigned single precision or boolean.
481 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
484 2016-02-16 Jakub Jelinek <jakub@redhat.com>
486 PR rtl-optimization/69764
487 PR rtl-optimization/69771
488 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
489 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
491 2016-02-16 Richard Biener <rguenther@suse.de>
493 PR tree-optimization/69776
494 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
496 (indirect_refs_may_alias_p): Likewise.
497 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
498 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
500 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
501 (optimize_stmt): For redundant store discovery do not allow tbaa.
503 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
505 PR tree-optimization/69714
506 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
507 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
509 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
511 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
512 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
513 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
514 * config/arc/arc.c (arc_init): Check FPU options.
515 (get_arc_condition_code): Handle new CC_FPU* modes.
516 (arc_select_cc_mode): Likewise.
517 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
518 register pair only. Allow access for ARCv2 accumulator.
519 (gen_compare_reg): Whenever we have FPU support use FPU compare
521 (arc_reorg): Don't generate brcc insns when FPU compare
522 instructions are involved.
523 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
524 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
525 floating point emulation.
526 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
527 (REVERSE_CONDITION): Add new CC_FPU* modes.
528 (TARGET_FP_SP_BASE): Define.
529 (TARGET_FP_DP_BASE): Likewise.
530 (TARGET_FP_SP_FUSED): Likewise.
531 (TARGET_FP_DP_FUSED): Likewise.
532 (TARGET_FP_SP_CONV): Likewise.
533 (TARGET_FP_DP_CONV): Likewise.
534 (TARGET_FP_SP_SQRT): Likewise.
535 (TARGET_FP_DP_SQRT): Likewise.
536 (TARGET_FP_DP_AX): Likewise.
537 * config/arc/arc.md (ARCV2_ACC): New constant.
538 (type): New fpu type attribute.
539 (SDF): Conditional iterator.
540 (cstore<mode>, cbranch<mode>): Change expand condition.
541 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
542 handles FPU/FPX cases as well.
543 * config/arc/arc.opt (mfpu): New option.
544 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
546 (adddf3, muldf3, subdf3): Removed.
547 * config/arc/predicates.md (proper_comparison_operator): Recognize
549 * config/arc/fpu.md: New file.
550 * doc/invoke.texi (ARC Options): Document mfpu option.
552 2016-02-16 Richard Biener <rguenther@suse.de>
554 PR rtl-optimization/69291
555 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
556 noce_operand_ok check.
558 2016-02-16 Tom de Vries <tom@codesourcery.com>
561 * omp-low.c (simd_clone_create): Remove call to
562 symtab->call_cgraph_insertion_hooks.
564 2016-02-16 Jakub Jelinek <jakub@redhat.com>
566 PR tree-optimization/69802
567 * tree-ssa-reassoc.c (update_range_test): If op is
568 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
569 op == 1 test of precision 1 integral op, otherwise handle
570 that case as op itself. Fix up formatting.
571 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
574 2016-02-16 Richard Biener <rguenther@suse.de>
576 PR tree-optimization/69586
577 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
578 types for conversion sources.
580 2016-02-16 Richard Biener <rguenther@suse.de>
583 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
586 2016-02-16 Alan Modra <amodra@gmail.com>
589 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
590 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
591 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
593 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
594 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
595 (p8_fmrgow_<mode>): Likewise.
596 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
598 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
599 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
600 to use movdi_internal64. Remove op0_di.
601 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
603 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
605 Add support for the FCCMP insn types
607 * config/aarch64/aarch64.md (fccmp): Change insn type.
609 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
610 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
611 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
612 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
613 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
614 * config/arm/types.md (fccmps): Add new insn type.
617 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
619 * alias.c (get_alias_set): Fix a typo in comment.
621 2016-02-15 Richard Biener <rguenther@suse.de>
623 PR tree-optimization/69595
624 * match.pd: Complete range test simplification to true.
626 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
628 PR rtl-optimization/69648
629 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
630 pic_offset_table_rtx.
632 PR rtl-optimization/69752
633 * ira.c (update_equiv_regs): When looking for more than a single SET,
634 also take other side effects into account.
636 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
638 * config/s390/s390.c (s390_function_profiler): Add a new sequence
639 for z900+ CPUs in 31-bit mode.
641 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
643 * common/config/s390/s390-common.c (s390_supports_split_stack):
645 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
646 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
647 * config/s390/s390.c (struct machine_function): New field
648 split_stack_varargs_pointer.
649 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
650 in s390_emit_prologue.
651 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
653 (morestack_ref): New global.
654 (SPLIT_STACK_AVAILABLE): New macro.
655 (s390_expand_split_stack_prologue): New function.
656 (s390_live_on_entry): New function.
657 (s390_va_start): Use split-stack vararg pointer if appropriate.
658 (s390_asm_file_end): Emit the split-stack note sections.
659 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
660 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
661 (UNSPECV_SPLIT_STACK_CALL): New unspec.
662 (UNSPECV_SPLIT_STACK_DATA): New unspec.
663 (split_stack_prologue): New expand.
664 (split_stack_space_check): New expand.
665 (split_stack_data): New insn.
666 (split_stack_call): New expand.
667 (split_stack_call_*): New insn.
668 (split_stack_cond_call): New expand.
669 (split_stack_cond_call_*): New insn.
671 2016-02-15 Richard Biener <rguenther@suse.de>
673 PR tree-optimization/69783
674 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
675 Add trivially correct cases.
677 2016-02-15 Tom de Vries <tom@codesourcery.com>
680 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
682 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
684 2016-02-15 Richard Biener <rguenther@suse.de>
686 PR tree-optimization/69776
687 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
688 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
689 indicate whether we can use TBAA to disambiguate against stores.
690 Use alias-set zero if not.
691 (visit_reference_op_store): Do not use TBAA when looking up
693 * tree-ssa-pre.c (compute_avail): Use TBAA here.
694 (eliminate_dom_walker::before_dom_children): But not when looking
697 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
699 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
701 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
703 * config/i386/znver1.md
704 (znver1_pop, znver1_pop_mem,
705 znver1_load_imov_double_store,
706 znver1_load_imov_direct_store,
707 znver1_load_imov_direct_load,
708 znver1_load_imov_double_load): Add new.
709 (znver1_insn, znver1_insn_load): Add icmov type.
711 znver1_sseavx_fma_load,
713 znver1_avx256_fma_load): Fix pipe usage.
715 2016-02-14 Alan Modra <amodra@gmail.com>
718 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
719 with an invalid hard reg, reload just the reg not the entire
720 pre/post-inc/dec address expression.
722 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
725 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
726 fixed R1_REG scratch reg.
727 (sibcall_value_pcrel_fdpic): Likewise.
729 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
733 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
735 2016-02-12 Walter Lee <walt@tilera.com>
737 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
738 * config/tilegx/t-tilegx: Likewise.
740 2016-02-12 David Malcolm <dmalcolm@redhat.com>
743 * diagnostic-show-locus.c (struct line_span): New struct.
744 (layout::get_first_line): Delete.
745 (layout::get_last_line): Delete.
746 (layout::get_num_line_spans): New member function.
747 (layout::get_line_span): Likewise.
748 (layout::print_heading_for_line_span_index_p): Likewise.
749 (layout::get_expanded_location): Likewise.
750 (layout::calculate_line_spans): Likewise.
751 (layout::m_first_line): Delete.
752 (layout::m_last_line): Delete.
753 (layout::m_line_spans): New field.
754 (layout::layout): Update comment. Replace m_first_line and
755 m_last_line with m_line_spans, replacing their initialization
756 with a call to calculate_line_spans.
757 (diagnostic_show_locus): When printing source lines and
758 annotations, rather than looping over a single span
759 of lines, instead loop over each line_span within
760 the layout, with an inner loop over the lines within them.
761 Call the context's start_span callback when changing line spans.
762 * diagnostic.c (diagnostic_initialize): Initialize start_span.
763 (diagnostic_build_prefix): Break out the building of the location
764 part of the string into...
765 (diagnostic_get_location_text): ...this new function, rewriting
766 it from nested ternary expressions to a sequence of "if"
768 (default_diagnostic_start_span_fn): New function.
769 * diagnostic.h (diagnostic_start_span_fn): New typedef.
770 (diagnostic_context::start_span): New field.
771 (default_diagnostic_start_span_fn): New prototype.
773 2016-02-12 David Malcolm <dmalcolm@redhat.com>
776 * gcc.c (driver::finalize): Fix cleanup of "specs".
778 2016-02-12 David Malcolm <dmalcolm@redhat.com>
782 * gcc.c (driver::driver): Initialize m_option_suggestions.
783 (driver::~driver): Clean up m_option_suggestions.
784 (suggest_option): Convert to...
785 (driver::suggest_option): ...this, and split out into
786 driver::build_option_suggestions and find_closest_string.
787 (driver::build_option_suggestions): New function, from
788 first half of suggest_option. Special-case
789 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
790 the sanitizer_opts array. For options of enum types, add the
791 various enum values to the candidate strings.
792 (driver::handle_unrecognized_options): Remove "const".
793 * gcc.h (driver::handle_unrecognized_options): Likewise.
794 (driver::build_option_suggestions): New decl.
795 (driver::suggest_option): New decl.
796 (driver::m_option_suggestions): New field.
797 * opts-common.c (add_misspelling_candidates): New function.
798 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
800 * opts.h (sanitizer_opts): New array decl.
801 (add_misspelling_candidates): New function decl.
802 * spellcheck.c (find_closest_string): New function.
803 * spellcheck.h (find_closest_string): New function decl.
805 2016-02-12 Jakub Jelinek <jakub@redhat.com>
807 PR rtl-optimization/69764
808 PR rtl-optimization/69771
809 * optabs.c (expand_binop_directly): For shift_optab_p, force
810 convert_modes with VOIDmode if xop1 has VOIDmode.
812 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
815 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
816 to correctly determine instrumentation thunks.
818 2016-02-12 Jakub Jelinek <jakub@redhat.com>
821 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
822 type by reference, force lhs on the call.
825 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
826 Compute retval and retbnd early in all cases if split_part_return_p
827 and return_bb is not EXIT. Remove all clobber stmts and reset
828 all debug stmts that refer to SSA_NAMEs defined in split part,
829 except if it is retval, in that case replace the old retval with the
830 lhs of the call to the split part.
832 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
835 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
838 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
839 whose result is used in PHI.
840 (maybe_optimize_range_tests): Likewise.
841 (final_range_test_p): Likweise.
843 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
846 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
847 whose result is used in PHI.
848 (maybe_optimize_range_tests): Likewise.
849 (final_range_test_p): Likweise.
851 2016-02-12 Jakub Jelinek <jakub@redhat.com>
853 * cgraph.c: Spelling fixes - behaviour -> behavior and
854 neighbour -> neighbor.
855 * target.def: Likewise.
856 * sel-sched.c: Likewise.
857 * config/mips/mips.c: Likewise.
858 * config/arc/arc.md: Likewise.
859 * config/arm/cortex-a57.md: Likewise.
860 * config/arm/arm.c: Likewise.
861 * config/arm/neon.md: Likewise.
862 * config/arm/arm-c.c: Likewise.
863 * config/vms/vms-c.c: Likewise.
864 * config/s390/s390.c: Likewise.
865 * config/i386/znver1.md: Likewise.
866 * config/i386/i386.c: Likewise.
867 * config/ia64/hpux-unix2003.h: Likewise.
868 * config/msp430/msp430.md: Likewise.
869 * config/rx/rx.c: Likewise.
870 * config/rx/rx.md: Likewise.
871 * config/aarch64/aarch64-simd.md: Likewise.
872 * config/aarch64/aarch64.c: Likewise.
873 * config/nvptx/nvptx.c: Likewise.
874 * config/bfin/bfin.c: Likewise.
875 * config/cris/cris.opt: Likewise.
876 * config/rs6000/rs6000.c: Likewise.
877 * target.h: Likewise.
878 * spellcheck.c: Likewise.
879 * ira-build.c: Likewise.
880 * tree-inline.c: Likewise.
881 * builtins.c: Likewise.
882 * lra-constraints.c: Likewise.
883 * explow.c: Likewise.
885 * targhooks.c: Likewise.
886 * tree-vect-data-refs.c: Likewise.
888 * doc/tm.texi: Likewise.
889 * doc/extend.texi: Likewise.
890 * doc/install.texi: Likewise.
891 * doc/md.texi: Likewise.
892 * tree-ssa-tail-merge.c: Likewise.
893 * sched-int.h: Likewise.
894 * match.pd: Likewise.
895 * sched-ebb.c: Likewise.
896 * target.def (omit_struct_return_reg): Likewise.
897 * gimple-ssa-isolate-paths.c: Likewise.
898 (find_implicit_erroneous_behaviour): Renamed to...
899 (find_implicit_erroneous_behavior): ... this.
900 (find_explicit_erroneous_behaviour): Renamed to...
901 (find_explicit_erroneous_behavior): ... this.
902 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
904 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
906 PR rtl-optimization/64682
907 PR rtl-optimization/69567
908 PR rtl-optimization/69737
909 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
910 in I2 as well, just lose it.
912 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
914 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
916 (aarch64_last_printed_tune_string): Likewise.
917 (aarch64_declare_function_name): Only output .arch assembler
918 directive if it will be different from the previously output
919 directive. Same for .tune comment but only if -dA is set.
920 (aarch64_start_file): New function.
921 (TARGET_ASM_FILE_START): Define.
923 2016-02-11 David Malcolm <dmalcolm@redhat.com>
926 * Makefile.in (PLUGIN_HEADERS): Add params.list.
928 2016-02-11 Jakub Jelinek <jakub@redhat.com>
931 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
932 -Wmaybe-uninitialized warning.
934 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
937 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
939 2016-02-11 Richard Biener <rguenther@suse.de>
941 PR rtl-optimization/69291
942 * ifcvt.c (noce_try_store_flag_constants): Do not allow
943 subexpressions affected by changing the result.
945 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
948 * lra-constraints.c (curr_insn_transform): Find in/out operands
949 for secondary memory moves. Update dups.
951 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
953 PR tree-optimization/69652
954 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
955 to nested loop, did source re-formatting, skip debug statements,
956 add check on statement with volatile operand, remove dead scalar
959 2016-02-10 Jakub Jelinek <jakub@redhat.com>
960 Patrick Palka <ppalka@gcc.gnu.org>
964 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
965 calls if the return type is TREE_ADDRESSABLE.
966 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
967 * ipa-split.c (split_function): Fix doubled "we" in comment.
968 Use void return type for the split part even if
969 !split_point->split_part_set_retval.
971 2016-02-10 Bin Cheng <bin.cheng@arm.com>
973 PR tree-optimization/68021
974 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
975 when computing the value of biv cand by itself.
977 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
979 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
980 (cortexa57_tunings): Likewise.
981 (cortexa72_tunings): Likewise.
982 (arch_macro_fusion_pair_p): Add support for AES fusion.
983 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
984 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
985 Allow virtual registers before reload so early scheduling works.
986 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
987 correct latency and pipeline.
988 (cortex_a57_crypto_complex): Likewise.
989 (cortex_a57_crypto_xor): Likewise.
990 (define_bypass): Add AES bypass.
992 2016-02-10 Richard Biener <rguenther@suse.de>
994 PR tree-optimization/69726
995 * passes.def: Add DCE pass before late uninit.
996 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
997 really fixup if-conversions job.
999 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
1001 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
1002 (arm_cortex_a57_tune): Likewise.
1003 (aarch_macro_fusion_pair_p): Add support for AES fusion.
1004 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
1006 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
1008 * timevar.def (TV_PHASE_DBGINFO): Delete.
1009 (TV_PHASE_CHECK_DBGINFO): Likewise.
1010 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
1012 2016-02-10 Richard Biener <rguenther@suse.de>
1014 PR tree-optimization/69719
1015 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1016 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
1018 2016-02-09 Andrew Pinski <apinski@cavium.com>
1021 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
1022 get_vcond_mask_icode returns false.
1024 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1027 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
1028 an ADDIS that adds a pointer to a large constant that sets the
1029 upper16 bits with a load operation.
1031 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
1034 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
1036 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
1038 (vzipq_s16): Likewise.
1039 (vzipq_s32): Likewise.
1040 (vzipq_f32): Likewise.
1041 (vzipq_u8): Likewise.
1042 (vzipq_u16): Likewise.
1043 (vzipq_u32): Likewise.
1044 (vzipq_p8): Likewise.
1045 (vzipq_p16): Likewise.
1047 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
1050 * config/arm/arm.c (neon_endian_lane_map): New function.
1051 (neon_vector_pair_endian_lane_map): New function.
1052 (arm_evpc_neon_vuzp): Allow for big endian lane order.
1053 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
1055 (vuzpq_s16): Likewise.
1056 (vuzpq_s32): Likewise.
1057 (vuzpq_f32): Likewise.
1058 (vuzpq_u8): Likewise.
1059 (vuzpq_u16): Likewise.
1060 (vuzpq_u32): Likewise.
1061 (vuzpq_p8): Likewise.
1062 (vuzpq_p16): Likewise.
1064 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
1067 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
1070 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
1072 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
1073 truncate const_int operand 1 to QImode.
1075 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
1077 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
1078 corresponding to an abnormal edge.
1080 2016-02-09 Tom de Vries <tom@codesourcery.com>
1082 PR tree-optimization/69599
1083 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
1085 (find_func_aliases_for_builtin_call, find_func_clobbers)
1086 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
1089 2016-02-09 Richard Biener <rguenther@suse.de>
1091 PR tree-optimization/69715
1092 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
1093 LHS on calls as non-rewritable.
1095 2016-02-09 Tom de Vries <tom@codesourcery.com>
1098 * lto-wrapper.c (append_diag_options): New function.
1099 (compile_offload_image): Call append_diag_options.
1101 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
1104 * doc/extend.texi (Flag Output Operands): Correct sectioning.
1105 Minor copy-edit to fix verb tenses.
1107 2016-02-08 Jakub Jelinek <jakub@redhat.com>
1109 PR tree-optimization/69209
1110 * ipa-split.c (split_function): If split part is not
1111 returning retval, retval has gimple type but is not
1112 gimple value, force it into a SSA_NAME first.
1114 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
1116 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
1119 2016-02-08 Jason Merrill <jason@redhat.com>
1122 * convert.c (convert_to_integer_1): Check dofold on truncation
1124 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
1125 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
1126 Rename from *_nofold.
1127 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
1128 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
1130 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
1133 * tree.c (build_common_tree_nodes): Remove short_double argument.
1134 All callers changed.
1135 * tree.h (build_common_tree_nodes): Adjust declaration.
1136 * doc/invoke.texi (-fshort-double): Remove documentation.
1137 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1138 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
1139 * lto-wrapper.c (merge_and_complain, append_compiler_options)
1140 (append_linker_options): Don't handle OPT_fshort_double.
1142 PR rtl-optimization/68730
1143 * lra-remat.c (insn_to_cand_activation): New static variable.
1144 (lra_remat): Allocate and free it.
1145 (create_cand): New arg activation. Initialize a field in
1146 insn_to_cand_activation if it is nonnull.
1147 (create_cands): Pass the activation insn to create_cand when making
1148 a candidate involving an output reload. Reorganize code a little.
1149 (do_remat): Keep track of active status of candidates in a separate
1152 2016-02-08 Richard Biener <rguenther@suse.de>
1154 PR tree-optimization/69719
1155 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
1156 Properly use absolute of the difference of the two offsets to
1157 compare or adjust the segment length.
1159 2016-02-08 Richard Biener <rguenther@suse.de>
1160 Jeff Law <law@redhat.com>
1163 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
1164 types for anonymous SSA names.
1166 2016-02-08 Richard Biener <rguenther@suse.de>
1168 PR rtl-optimization/69274
1169 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
1171 2016-02-08 Jeff Law <law@redhat.com>
1173 PR tree-optimization/65917
1174 * tree-ssa-dom.c (record_temporary_equivalences): Record both
1175 equivalences from if (x == y) style conditionals.
1176 (loop_depth_of_name): Remove.
1177 (record_equality): Remove loop depth check.
1178 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
1179 (const_and_copies::record_const_or_copy_raw): New member function.
1180 * tree-ssa-scopedtables.c
1181 (const_and_copies::record_const_or_copy_raw): New, factored out of
1182 (const_and_copies::record_const_or_copy): Call new member function.
1184 2016-02-05 Jeff Law <law@redhat.com>
1186 PR tree-optimization/68541
1187 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
1188 (count_stmts_in_block): New function.
1189 (poor_ifcvt_candidate_code): Likewise.
1190 (is_feasible_trace): Add some heuristics to determine when path
1191 splitting is profitable.
1192 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
1193 is a diamond with a single exit.
1195 2016-02-05 Martin Sebor <msebor@redhat.com>
1198 * doc/invoke.texi: Update -Wplacement-new to take an optional
1201 2016-02-06 Richard Henderson <rth@redhat.com>
1204 * tree.c (tree_nop_conversion_p): Do not strip casts into or
1205 out of non-standard address spaces.
1207 2016-02-05 Jakub Jelinek <jakub@redhat.com>
1209 PR rtl-optimization/69691
1210 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
1212 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
1214 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
1215 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
1216 (*ieee128_mfvsrd_64bit): Likewise.
1217 (*ieee128_mfvsrd_32bit): Likewise.
1219 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
1223 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1225 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
1226 instrumented_version.
1228 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
1230 * doc/invoke.texi (Optimize Options): In table of --param options
1231 rename second occurrence of tracer-min-branch-ratio to
1232 tracer-min-branch-probability, rename
1233 tracer-min-branch-ratio-feedback to
1234 tracer-min-branch-probability-feedback and clarify description,
1235 rename sched-spec-state-edge-prob-cutoff to
1236 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
1237 to selsched-insns-to-rename, rename lto-minpartition to
1238 lto-min-partition, delete reorder-blocks-duplicate and
1239 reorder-blocks-duplicate-feedback.
1241 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1243 * config/s390/s390.c (s390_register_info_set_ranges): Remove
1246 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
1248 * doc/extend.texi: S/390: Correct some typos.
1250 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1252 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
1254 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1257 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
1258 (s390_register_info_gprtofpr): Use new macros above.
1259 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
1261 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
1262 its name. Adjust restore and save gpr ranges.
1263 (s390_register_info_set_ranges): New function.
1264 (s390_register_info): Use new macros above. Call
1265 s390_register_info_set_ranges.
1266 (s390_optimize_register_info): Likewise.
1267 (s390_hard_regno_rename_ok): Use new macros.
1268 (s390_hard_regno_scratch_ok): Likewise.
1269 (s390_emit_epilogue): Likewise.
1270 (s390_can_use_return_insn): Likewise.
1271 (s390_optimize_prologue): Likewise.
1272 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
1274 2016-02-05 Jakub Jelinek <jakub@redhat.com>
1277 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
1279 (ix86_option_override_internal): Disable TARGET_STV even for
1280 -m{incoming,preferred}-stack-boundary=3.
1282 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1284 * config.gcc: Mark deprecated rtems targets as obsolete.
1286 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
1288 PR rtl-optimization/64682
1289 PR rtl-optimization/69567
1290 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
1291 before I2 only if the register is both used and set in I2.
1293 2016-02-04 DJ Delorie <dj@redhat.com>
1295 * config/msp430/msp430.c (msp430_start_function): Add function type.
1297 2016-02-04 Jakub Jelinek <jakub@redhat.com>
1300 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
1302 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
1304 PR rtl-optimization/69577
1306 2015-10-29 Richard Henderson <rth@redhat.com>
1310 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
1311 sse check to the exact conditions of PR 67609.
1313 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
1316 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
1317 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
1318 not allowed into the traditional Altivec registers.
1319 (movtd_64bit_nodm): Likewise.
1320 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
1322 2016-02-04 David Malcolm <dmalcolm@redhat.com>
1324 * config/aarch64/cortex-a57-fma-steering.c
1325 (aarch64_register_fma_steering): Remove "static" from arguments
1328 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
1331 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
1334 2016-02-04 Mike Frysinger <vapier@gentoo.org>
1336 * doc/invoke.texi: Delete -mno-fma4.
1338 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
1340 PR rtl-optimization/69577
1341 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
1342 (find_subregs_of_mode): Update accordingly. Iterate over partial
1345 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
1347 * config/arm/arm-protos.h (neon_reinterpret): Remove.
1348 * config/arm/arm.c (neon_reinterpret): Remove.
1349 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
1350 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
1351 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
1352 vreinterpretti): Remove.
1353 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
1354 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
1355 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
1356 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
1357 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
1358 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
1359 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
1360 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
1361 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
1362 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
1363 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
1364 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
1365 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
1366 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
1367 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
1368 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
1369 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
1370 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
1371 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
1372 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
1373 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
1374 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
1375 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
1376 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
1377 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
1378 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
1379 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
1380 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
1381 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
1382 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
1383 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
1384 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
1385 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
1386 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
1387 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
1388 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
1389 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
1390 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
1391 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
1392 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
1393 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
1394 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
1395 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
1396 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
1397 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
1398 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
1399 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
1400 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
1401 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
1402 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
1403 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
1404 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
1405 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
1406 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
1407 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
1408 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
1409 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
1410 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
1411 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
1412 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
1413 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
1414 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
1415 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
1416 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
1417 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
1418 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
1419 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
1420 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
1421 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
1422 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
1423 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
1424 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
1425 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
1426 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
1427 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
1428 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
1429 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
1430 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
1431 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
1432 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
1433 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
1434 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
1435 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
1436 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
1437 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
1438 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
1439 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
1440 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
1441 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
1442 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
1443 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
1444 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
1445 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
1446 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
1447 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
1448 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
1449 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
1450 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
1451 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
1452 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
1453 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
1454 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
1455 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
1457 2016-02-04 Martin Liska <mliska@suse.cz>
1460 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
1461 that are gimple_store_p.
1462 (maybe_instrument_call): Likewise.
1464 2016-02-04 Bin Cheng <bin.cheng@arm.com>
1466 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
1467 register scaling out of memory reference and comment why.
1469 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1473 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
1474 folding the source of a SET.
1476 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1480 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
1481 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
1483 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
1487 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
1490 2016-02-04 Christian Bruel <christian.bruel@st.com>
1492 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
1493 * config/arm/arm.c (arm_set_current_function): Likewise.
1495 2016-02-04 Jakub Jelinek <jakub@redhat.com>
1496 Ilya Enkovich <enkovich.gnu@gmail.com>
1497 H.J. Lu <hongjiu.lu@intel.com>
1500 * config/i386/i386.c (convert_scalars_to_vector): Remove
1501 stack alignment fixes.
1502 (ix86_option_override_internal): Disable TARGET_STV if stack
1503 might not be aligned enough.
1504 (ix86_minimum_alignment): Assert that TARGET_STV is false.
1506 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
1508 * gcc/config/i386/x86-tune.def: Disable default prefetching
1511 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1512 Vladimir Makarov <vmakarov@redhat.com>
1515 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
1516 in validating fused toc addresses.
1518 2016-02-03 Jakub Jelinek <jakub@redhat.com>
1521 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
1522 range->m_caret fields if range->m_show_caret_p is false.
1525 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
1526 Force oldval into register if it does not satisfy reg_or_short_operand
1527 predicate. Fix up formatting.
1529 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
1530 Alexandre Oliva <aoliva@redhat.com>
1533 * lra-constraints.c (simplify_operand_subreg): Check additionally
1534 address validity after potential reloading.
1535 (process_address_1): Check insns validity. In case of failure do
1538 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
1541 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
1544 2016-02-02 Jakub Jelinek <jakub@redhat.com>
1546 * wide-int.cc (canonize_uhwi): New function.
1547 (wi::divmod_internal): Use it.
1549 2016-02-02 James Norris <jnorris@codesourcery.com
1551 * gimplify.c (omp_notice_variable): Add usage check.
1553 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
1555 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
1556 like LE, GE, LT, GT when emitting relational operator.
1558 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
1560 * ira-costs.c (find_costs_and_classes): Add extra argument.
1561 * target.def (ira_change_pseudo_allocno_class): Add parameter.
1562 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
1563 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
1564 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
1565 Add best_class parameter, and return it if not ALL_REGS.
1566 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
1568 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
1571 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
1573 * config/aarch64/aarch64.c
1574 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
1575 (aarch64_ira_change_pseudo_allocno_class): New function.
1577 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
1580 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
1582 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1584 * config/avr/avr.c (avr_option_override): Set
1585 PARAM_ALLOW_STORE_DATA_RACES to 1.
1587 2016-02-02 Richard Biener <rguenther@suse.de>
1589 PR tree-optimization/69595
1590 * match.pd: Add range test simplifications to true/false.
1592 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
1594 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
1595 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
1598 2016-02-02 Richard Biener <rguenther@suse.de>
1600 PR tree-optimization/69606
1601 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
1602 info on the result before moving a stmt.
1604 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
1607 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
1608 branch with vector comparison.
1609 * config/i386/sse.md (VI48_AVX): New mode iterator.
1610 (define_expand "cbranch<mode>4): Add support for conditional branch
1611 with vector comparison.
1612 * tree-vect-loop.c (optimize_mask_stores): New function.
1613 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
1614 has_mask_store field of vect_info.
1615 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
1616 vectorized loops having masked stores after vec_info destroy.
1617 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
1618 correspondent macros.
1619 (optimize_mask_stores): Add prototype.
1621 2016-02-02 Alan Modra <amodra@gmail.com>
1624 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
1627 2016-02-02 Alan Modra <amodra@gmail.com>
1630 * config/rs6000/rs6000.c (need_toc_init): New var, set it
1631 whenever toc_label_name used.
1632 (rs6000_file_start): Don't set up toc section here,
1633 (rs6000_output_function_epilogue): do so here instead,
1634 (rs6000_xcoff_file_start): and here.
1635 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
1636 (load_toc_aix_di): Likewise.
1638 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1640 PR rtl-optimization/69592
1641 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
1642 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
1643 (num_sign_bit_copies_binary_arith_p): New inline function.
1644 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
1646 2016-02-01 Jeff Law <law@redhat.com>
1648 PR tree-optimization/69580
1649 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
1650 * tree-ssa-threadbackward.c
1651 (fsm_find_control_statement_thread_paths): Do not try to walk
1652 through large PHI nodes.
1654 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1656 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
1657 when count is incremented above limit, don't analyze further
1660 * omp-low.c (oacc_parse_default_dims): Avoid
1661 -Wsign-compare warning, make sure value fits into int
1662 rather than just unsigned int.
1664 2016-02-01 Bin Cheng <bin.cheng@arm.com>
1666 PR tree-optimization/67921
1667 * fold-const.c (split_tree): New parameters. Convert pointer
1668 type variable part to proper type before negating.
1669 (fold_binary_loc): Pass new arguments to split_tree.
1671 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1673 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
1674 (nvptx_goacc_validate_dims): Extend to handle global defaults.
1675 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
1676 * doc/tm.texti: Rebuilt.
1677 * doc/invoke.texi (fopenacc-dim): Document.
1678 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
1679 (append_compiler_options): Likewise.
1680 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
1681 (oacc_parse_default_dims): New.
1682 (oacc_validate_dims): Add USED arg. Select non-unity default when
1684 (oacc_loop_fixed_partitions): Return mask of used partitions.
1685 (oacc_loop_auto_partitions): Emit dump info.
1686 (oacc_loop_partition): Return mask of used partitions.
1687 (execute_oacc_device_lower): Parse default dimension arg. Adjust
1688 loop partitioning and validation calls.
1690 2016-02-01 Richard Biener <rguenther@suse.de>
1693 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
1695 2016-02-01 Richard Biener <rguenther@suse.de>
1697 PR tree-optimization/69574
1698 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
1699 of asserting return chrec_dont_know.
1701 2016-02-01 Martin Liska <mliska@suse.cz>
1703 * mem-stats-traits.h: Add copyright header.
1704 * mem-stats.h: Likewise.
1706 2016-02-01 Richard Biener <rguenther@suse.de>
1708 PR tree-optimization/69579
1709 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
1710 Do not propagate through abnormal PHI results.
1712 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
1714 * postreload.c (reload_cse_simplify): Remove dead code.
1716 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1718 PR rtl-optimization/69570
1719 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
1720 if there is more than one set, not if there is a single set.
1722 2016-02-01 Richard Henderson <rth@redhat.com>
1725 * combine.c (make_compound_operation): When looking through a
1726 subreg, make sure to re-extend to the width of the outer mode.
1728 2016-01-30 Jakub Jelinek <jakub@redhat.com>
1730 PR tree-optimization/69546
1731 * wide-int.cc (wi::divmod_internal): For unsigned division
1732 where both operands fit into uhwi, if o1 is 1 and o0 has
1733 msb set, if divident_prec is larger than bits per hwi,
1734 clear another quotient word and return 2 instead of 1.
1735 Similarly for remainder with msb in HWI set, if dividend_prec
1736 is larger than bits per hwi.
1738 2016-01-29 Martin Jambor <mjambor@suse.cz>
1740 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
1741 Use short lowercase names.
1742 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
1743 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
1744 acq_rel one. Protect warning agains segfaults if
1745 get_memory_order_name returns NULL.
1746 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
1747 with release semantics. Do not warn if get_memory_order already did.
1748 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
1749 semantics. Fix check for relaxed or acquire semantics. Do not warn
1750 if get_memory_order already did.
1752 2016-01-29 Sebastian Pop <s.pop@samsung.com>
1754 * doc/install.texi: Document that isl-0.16 is supported.
1756 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
1759 * config/i386/constraints.md (Bm): Describe as special memory
1761 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
1762 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1763 * genpreds.c (struct constraint_data): Add is_special_memory.
1764 (have_special_memory_constraints, special_memory_start): New
1766 (special_memory_end): Ditto.
1767 (add_constraint): Add new arg is_special_memory. Add code to
1768 process its true value. Update have_special_memory_constraints.
1769 (process_define_constraint): Pass the new arg.
1770 (process_define_register_constraint): Ditto.
1771 (choose_enum_order): Process special memory.
1772 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
1773 function insn_extra_special_memory_constraint.
1774 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1775 * gensupport.c (process_rtx): Process
1776 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1777 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
1778 * ira-lives.c (single_reg_class): Use
1779 insn_extra_special_memory_constraint.
1780 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
1781 * lra-constraints.c (process_alt_operands): Ditto.
1782 (curr_insn_transform): Use insn_extra_special_memory_constraint.
1783 * recog.c (asm_operand_ok, preprocess_constraints): Process
1785 * reload.c (find_reloads): Ditto.
1786 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
1787 * stmt.c (parse_input_constraint): Use
1788 insn_extra_special_memory_constraint.
1790 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1793 * lra-splill.c (lra_final_code_change): Revert r229087 by
1794 removing all sub-registers.
1796 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
1799 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
1801 2016-01-29 Jakub Jelinek <jakub@redhat.com>
1804 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
1805 SSE1, copy target into the temporary reg first before recursing
1808 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1810 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
1813 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
1815 * ginclude/stdarg.h: Test __cplusplus instead of
1816 __GXX_EXPERIMENTAL_CXX0X__.
1818 2016-01-29 Richard Biener <rguenther@suse.de>
1820 PR tree-optimization/69547
1821 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
1822 Do not mark clobbers necessary.
1823 (mark_all_reaching_defs_necessary_1): Likewise.
1825 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1827 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
1828 declaration name with %qs and print it in both error messages.
1829 Also fix indentation.
1831 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1834 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
1835 trailing blank line from error message.
1837 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
1840 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
1843 2016-01-29 Richard Biener <rguenther@suse.de>
1846 * match.pd: Allow all integral types when simplifying a
1847 widening or sign-changing conversion.
1849 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1851 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
1852 back to setting codegen_error to fail codegen.
1854 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
1857 * config/i386/constraints.md (C): Only accept constant zero operand.
1858 (BC): New constraint.
1859 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
1860 instead of C constraint.
1861 * doc/md.texi (Machine Constraints): Update description
1864 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
1867 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
1869 2016-01-28 Jakub Jelinek <jakub@redhat.com>
1872 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
1875 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
1877 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
1878 branches if using guessed profile.
1880 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
1882 * graphite-optimize-isl.c (optimize_isl): Fix dump.
1884 2016-01-28 Richard Henderson <rth@redhat.com>
1887 * config/aarch64/aarch64-modes.def (CC_Cmode): New
1888 * config/aarch64/aarch64-protos.h: Update.
1889 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
1890 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
1891 (aarch64_get_condition_code_1): Handle CC_Cmode.
1892 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
1893 (*add<mode>3_compareC_cconly_imm): New.
1894 (*add<mode>3_compareC_cconly): New.
1895 (*add<mode>3_compareC_imm): New.
1896 (add<mode>3_compareC): New.
1897 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
1898 to be first. Use aarch64_carry_operation.
1899 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
1900 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
1901 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
1902 (subti3): Use subdi3_compare1.
1903 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
1904 (sub<mode>3_compare1): New.
1905 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
1906 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
1907 (*subsi3_carryin_uxtw): Likewise.
1908 (*ngc<mode>, *ngcsi_uxtw): Likewise.
1909 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
1910 * config/aarch64/iterators.md (DWI): New.
1911 * config/aarch64/predicates.md (aarch64_carry_operation): New.
1912 (aarch64_borrow_operation): New.
1914 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1916 * graphite-optimize-isl.c (optimize_isl): Print a different debug
1917 message when isl does not return a valid schedule.
1919 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1921 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1922 Remove comments from class declarations: they are already in the code
1925 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1927 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
1929 (ternary_op_to_tree): Same.
1930 (unary_op_to_tree): Same.
1931 (nary_op_to_tree): Same.
1932 (gcc_expression_from_isl_expr_op): Same.
1933 (gcc_expression_from_isl_expression): Same.
1934 (graphite_create_new_loop): Same.
1935 (graphite_create_new_loop_guard): Same.
1936 (build_iv_mapping): Same.
1937 (graphite_create_new_guard): Same.
1938 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
1939 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
1941 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1943 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
1944 instead of setting codegen_error to fail codegen.
1946 2016-01-28 Jason Merrill <jason@redhat.com>
1948 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
1950 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1952 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
1953 Remove CONST_INT_P check in CCMP cost calculation.
1955 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1957 * config/aarch64/aarch64.c (generic_vector_cost):
1958 Set vec_permute_cost.
1959 (cortexa57_vector_cost): Likewise.
1960 (exynosm1_vector_cost): Likewise.
1961 (xgene1_vector_cost): Likewise.
1962 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
1963 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
1964 Add vec_permute_cost entry.
1966 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1968 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
1970 (add<mode>3_compare0): Likewise.
1971 (addsi3_compare0_uxtw): Likewise.
1972 (add<mode>3nr_compare0): Likewise.
1973 (compare_neg<mode>): Likewise.
1974 (<optab><mode>3): Likewise.
1976 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
1978 * tree-vect-stmts.c (vectorizable_comparison): Add
1979 NULL check for vectype.
1981 2016-01-28 Richard Biener <rguenther@suse.de>
1983 PR tree-optimization/69466
1984 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1985 Account for PHIs we couldn't duplicate.
1987 2016-01-28 Martin Liska <mliska@suse.cz>
1990 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
1991 instead of ENABLE_VALGRIND_CHECKING.
1993 2016-01-27 Richard Henderson <rth@redhat.com>
1996 * lra-remat.c (subreg_regs): New.
1997 (dump_candidates_and_remat_bb_data): Dump it.
1998 (operand_to_remat): Reject if operand in subreg_regs.
1999 (set_bb_regs): Collect subreg_regs.
2000 (lra_remat): Init and free subreg_regs. Compute
2001 calculate_local_reg_remat_bb_data before create_cands.
2003 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
2006 * config/i386/i386.c (ix86_update_stack_boundary): Don't
2007 change stack_alignment_needed for __tls_get_addr call.
2009 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
2011 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
2013 2016-01-27 Jeff Law <law@redhat.com>
2015 PR tree-optimization/68398
2016 PR tree-optimization/69196
2017 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
2018 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
2019 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2020 Only count PHIs in the last block in the path. The others will
2021 const/copy propagate away. Add heuristic to allow more irreducible
2022 subloops to be created when it is likely profitable to do so.
2024 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2025 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
2026 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
2028 2016-01-27 Jakub Jelinek <jakub@redhat.com>
2031 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
2032 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
2033 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
2034 * tree-streamer-in.c: Include asan.h.
2035 (streamer_get_builtin_tree): For builtins in sanitizer
2036 range call initialize_sanitizer_builtins and retry.
2038 2016-01-27 Ian Lance Taylor <iant@google.com>
2040 * common.opt (fkeep-gc-roots-live): New undocumented option.
2041 * tree-ssa-loop-ivopts.c (add_candidate_1): If
2042 -fkeep-gc-roots-live, skip pointers.
2043 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
2046 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
2049 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
2050 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
2052 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
2055 * configure.ac: NetBSD provides SSP in its C library.
2056 * configure: Updated.
2058 2016-01-27 Richard Biener <rguenther@suse.de>
2060 PR tree-optimization/69166
2061 * tree-vect-loop.c (vect_is_simple_reduction): Always check
2062 reduction code for commutativity / associativity.
2064 2016-01-27 Martin Jambor <mjambor@suse.cz>
2066 PR tree-optimization/69355
2067 * tree-sra.c (analyze_access_subtree): Correct hole detection when
2068 total_scalarization fails.
2070 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
2072 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
2075 2016-01-27 Christian Bruel <christian.bruel@st.com>
2078 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
2079 Move arm_reset_previous_fndecl and set_target_option_current_node in
2080 the conditional part. Call save_restore_target_globals.
2081 * config/arm/arm.c (arm_set_current_function):
2082 Refactor to better support #pragma target and attribute mix.
2083 Call save_restore_target_globals.
2084 * config/arm/arm-protos.h (save_restore_target_globals): New function.
2086 2016-01-27 Martin Liska <mliska@suse.cz>
2088 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
2089 reference for an HSA kernel and its host function.
2091 2016-01-27 Jakub Jelinek <jakub@redhat.com>
2093 PR tree-optimization/69399
2094 * wide-int.h (wi::lrshift): For larger precisions, only
2095 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
2097 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
2099 * config/arc/predicates.md (proper_comparison_operator): Reject
2100 constant-constant comparison.
2102 2016-01-26 Tom de Vries <tom@codesourcery.com>
2104 PR tree-optimization/69110
2105 * tree-data-ref.c (initialize_data_dependence_relation): Handle
2106 DR_NUM_DIMENSIONS == 0.
2108 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2109 Sebastian Pop <s.pop@samsung.com>
2111 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
2112 isl_ast_op_cond and isl_ast_op_select.
2113 (gcc_expression_from_isl_expr_op): Same.
2115 2016-01-26 Jason Merrill <jason@redhat.com>
2118 * tree.c (recompute_constructor_flags): Split out from
2120 (verify_constructor_flags): New.
2121 * tree.h: Declare them.
2123 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
2125 PR rtl-optimization/69217
2126 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
2127 are no TYPE_FIELDS set for the record type.
2129 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2132 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
2133 toc_label_name unconditionally.
2134 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
2135 SYMBOL_REF string. Use toc_label_name instead of constructing
2137 (rs6000_elf_declare_function_name): Use toc_label_name instead of
2138 constructing LCTOC1.
2140 2016-01-26 Martin Sebor <msebor@redhat.com>
2143 * doc/extend.texi (Common Type Attributes): Move text that talks about
2144 attribute packed from attribute aligned to the section discussing
2145 the former attribute for clarity.
2147 2016-01-26 Richard Henderson <rth@redhat.com>
2150 * trans-mem.c (tm_region_init): Mark entry block as visited.
2152 2016-01-26 David Malcolm <dmalcolm@redhat.com>
2155 * diagnostic-show-locus.c (layout::print_source_line): Replace
2156 call to pp_newline with call to layout::print_newline.
2157 (layout::print_annotation_line): Likewise.
2158 (layout::move_to_column): Likewise.
2159 (layout::print_any_fixits): After printing any fixits, print a
2160 trailing newline, if necessary.
2161 (layout::print_newline): New method, resetting any colorization
2163 (diagnostic_show_locus): Move the pp_newline to before the
2164 early bailout. Remove dummy block enclosing the layout instance.
2165 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
2166 of pp_newline_and_flush with pp_flush.
2167 (diagnostic_append_note): Delete use of pp_newline.
2168 (diagnostic_append_note_at_rich_loc): Delete.
2169 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
2170 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
2171 when newline characters are added to the buffer.
2173 2016-01-26 Michael Matz <matz@suse.de>
2175 * configure.ac (ac_cv_std_swap_in_utility): New test.
2176 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
2177 * configure: Regenerate.
2178 * config.in: Regenerate.
2180 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
2182 * config/arc/arc.md (cstoresi4): Force operand into register.
2183 (arcset<code>): Fix predicate.
2184 (arcsetltu): Likewise.
2185 (arcsetgeu): Likewise.
2186 (arcsethi): Likewise.
2187 (arcsetls): Likewise.
2189 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2191 PR tree-optimization/69483
2192 * gimple-fold.c (canonicalize_constructor_val): Return NULL
2193 if base has error_mark_node type.
2195 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
2198 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
2199 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
2201 (vget_lane_f16): Handle big-endian.
2202 (vgetq_lane_f16): Likewise.
2203 (vset_lane_f16): Likewise.
2204 (vsetq_lane_f16): Likewise.
2205 * config/arm/iterators.md (VQXMOV): Add V8HF.
2206 (VDQ): Add V4HF and V8HF.
2207 (V_reg): Handle V4HF and V8HF.
2208 (Is_float_mode): Likewise.
2209 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
2210 neon_vdup_nv8hf): New patterns.
2211 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
2212 Use VD_LANE iterator.
2213 (neon_vld1_dup<mode>): Use VQ2 iterator.
2215 2016-01-26 Nathan Sidwell <nathan@acm.org>
2217 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
2218 (set_oacc_fn_attrib): Add IS_KERNEL arg.
2219 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
2220 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
2221 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
2222 (oacc_validate_dims): Add LEVEL arg, don't return level.
2223 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
2225 (execute_oacc_device_lower): Adjust, add more dump output.
2226 * tree-ssa-loop.c (gate_oacc_kernels): Use
2227 oacc_fn_attrib_kernels_p.
2228 * tree-parloops.c (create_parallel_loop): Adjust
2229 set_oacc_fn_attrib call.
2231 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2234 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
2235 (append_compiler_options): Handle -fcilkplus.
2236 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
2238 2016-01-26 Nick Clifton <nickc@redhat.com>
2241 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
2242 been marked as DECL_ONE_ONLY but we do not the means to make it
2243 so, then do not allow it to bind locally.
2245 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2248 * opts.h (parse_sanitizer_options): New prototype.
2249 * opts.c (sanitizer_opts): New array.
2250 (parse_sanitizer_options): New function.
2251 (common_handle_option): Use parse_sanitizer_options.
2253 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
2256 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
2257 alignment adjustment to ...
2258 (ix86_update_stack_boundary): Here. Don't over-align stack for
2260 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
2261 if __tls_get_addr is called.
2263 2016-01-26 Christian Bruel <christian.bruel@st.com>
2265 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
2267 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
2269 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
2271 2016-01-26 Richard Biener <rguenther@suse.de>
2274 * match.pd: Guard X * CST CMP 0 pattern with single_use.
2276 2016-01-26 Richard Biener <rguenther@suse.de>
2278 PR tree-optimization/69452
2279 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
2280 (move_computations_dom_walker::before_dom_children): Rename
2282 (move_computations_worker): This.
2283 (move_computations): Perform an RPO rather than a DOM walk.
2285 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2288 * combine.c (combine_instructions): For REG_EQUAL note with
2289 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
2290 to the underlying register.
2291 * doc/rtl.texi (REG_EQUAL): Document the behavior of
2292 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
2294 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
2297 * config/aarch64/aarch64-builtins.c
2298 (aarch64_init_simd_builtin_types): Do not set structural
2299 equality to __Poly{8,16,64,128}_t types.
2301 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
2303 PR tree-optimization/69400
2304 * wide-int.cc (wi_pack): Take the precision as argument and
2305 perform canonicalization here rather than in the callers.
2306 Use the main loop to handle all full-width HWIs. Add a
2307 zero HWI if in_len isn't a full result.
2308 (wi::divmod_internal): Update accordingly.
2309 (wi::mul_internal): Likewise. Simplify.
2311 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
2312 Sebastian Pop <s.pop@samsung.com>
2314 * graphite-poly.c (apply_poly_transforms): Simplify.
2315 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
2316 (print_isl_map): Same.
2317 (print_isl_union_map): Same.
2318 (print_isl_schedule): New.
2319 (debug_isl_schedule): New.
2320 * graphite-dependences.c (scop_get_reads): Do not call
2321 isl_union_map_add_map that is undocumented isl functionality.
2322 (scop_get_must_writes): Same.
2323 (scop_get_may_writes): Same.
2324 (scop_get_original_schedule): Remove.
2325 (scop_get_dependences): Do not call isl_union_map_compute_flow that
2326 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
2327 (compute_deps): Remove.
2328 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
2329 (debug_schedule_ast): New.
2330 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
2331 set_separate_option.
2332 (graphite_regenerate_ast_isl): Add dump.
2333 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
2334 from scop->transformed_schedule.
2335 (graphite_regenerate_ast_isl): Add more dump.
2336 * graphite-optimize-isl.c (optimize_isl): Set
2337 scop->transformed_schedule. Check whether schedules are equal.
2338 (apply_poly_transforms): Move here.
2339 * graphite-poly.c (apply_poly_transforms): ... from here.
2340 (free_poly_bb): Static.
2341 (free_scop): Static.
2342 (pbb_number_of_iterations_at_time): Remove.
2343 (print_isl_ast): New.
2344 (debug_isl_ast): New.
2345 (debug_scop_pbb): New.
2346 * graphite-scop-detection.c (print_edge): Move.
2348 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
2349 (build_scop_scattering): Remove.
2350 (create_pw_aff_from_tree): Assert instead of bailing out.
2351 (add_condition_to_pbb): Remove unused code, do not fail.
2352 (add_conditions_to_domain): Same.
2353 (add_conditions_to_constraints): Remove.
2354 (build_scop_context): New.
2355 (add_iter_domain_dimension): New.
2356 (build_iteration_domains): Initialize pbb->iterators.
2357 Call add_conditions_to_domain.
2360 (index_outermost_in_loop): New.
2361 (index_pbb_in_loop): New.
2362 (outermost_pbb_in): New.
2363 (add_in_sequence): New.
2364 (add_outer_projection): New.
2365 (outer_projection_mupa): New.
2366 (add_loop_schedule): New.
2367 (build_schedule_pbb): New.
2368 (build_schedule_loop): New.
2369 (embed_in_surrounding_loops): New.
2370 (build_schedule_loop_nest): New.
2371 (build_original_schedule): New.
2372 (build_poly_scop): Call build_original_schedule.
2373 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
2374 (free_poly_dr): Remove.
2375 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
2376 (free_poly_bb): Remove.
2377 (debug_loop_vec): Remove.
2378 (print_isl_ast): Declare.
2379 (debug_isl_ast): Declare.
2380 (scop_do_interchange): Remove.
2381 (scop_do_strip_mine): Remove.
2382 (scop_do_block): Remove.
2383 (flatten_all_loops): Remove.
2384 (optimize_isl): Remove.
2385 (pbb_number_of_iterations_at_time): Remove.
2386 (debug_scop_pbb): Declare.
2387 (print_schedule_ast): Declare.
2388 (debug_schedule_ast): Declare.
2389 (struct scop): Remove schedule. Add original_schedule,
2390 transformed_schedule.
2391 (free_gimple_poly_bb): Remove.
2392 (print_generated_program): Remove.
2393 (debug_generated_program): Remove.
2394 (unify_scattering_dimensions): Remove.
2395 * sese.c (print_edge): ... here.
2396 (print_sese): ... here.
2397 (debug_edge): ... here.
2398 (debug_sese): ... here.
2399 * sese.h (print_edge): Declare.
2400 (print_sese): Declare.
2401 (dump_edge): Declare.
2402 (dump_sese): Declare.
2404 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
2405 Sebastian Pop <s.pop@samsung.com>
2407 * Makefile.in: Set ISLVER in site.exp.
2409 2016-01-25 Jakub Jelinek <jakub@redhat.com>
2411 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
2412 DECL_VALUE_EXPR of new_var even for the non-array case. Look
2413 through DECL_VALUE_EXPR for expansion.
2415 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2417 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
2418 the frame info after reload completed.
2420 2016-01-25 Jeff Law <law@redhat.com>
2422 PR tree-optimization/69196
2423 PR tree-optimization/68398
2424 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
2425 tree-ssa-threadupdate.c.
2426 (determine_bb_domination_status): Prototype
2427 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
2428 (determine_bb_domination_status): No longer static.
2429 (valid_jump_thread_path): Remove code to detect characteristics
2430 of the jump thread path not associated with correctness.
2431 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
2432 Correct test for thread path length. Count PHIs for real operands as
2433 statements that need to be copied. Do not count ASSERT_EXPRs.
2434 Look at all the blocks in the thread path. Compute and selectively
2435 filter thread paths based on threading through the latch, threading
2436 a multiway branch or crossing a multiway branch.
2438 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2440 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
2441 decl with __attribute__ ((unused)) annotation.
2443 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
2446 * tree-vect-stmts.c (vectorizable_condition): Check vectype
2447 of operands is compatible with a statement vectype.
2449 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
2451 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
2452 improve wording for mixed storage order support.
2454 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
2456 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
2457 (vcvt_u64_f64): Likewise.
2458 (vcvta_s64_f64): Likewise.
2459 (vcvta_u64_f64): Likewise.
2460 (vcvtm_s64_f64): Likewise.
2461 (vcvtm_u64_f64): Likewise.
2462 (vcvtn_s64_f64): Likewise.
2463 (vcvtn_u64_f64): Likewise.
2464 (vcvtp_s64_f64): Likewise.
2465 (vcvtp_u64_f64): Likewise.
2467 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
2469 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
2470 (arc_init): Check validity mll64 option.
2471 (arc_save_restore): Use double load/store instruction.
2472 (arc_expand_movmem): Likewise.
2473 (arc_split_move): Don't split if we have double load/store
2474 instructions. Returns a boolean.
2475 (arc_process_double_reg_moves): Change function to return boolean
2476 instead of a sequence of instructions.
2477 (arc_dwarf_register_span): New function.
2478 * config/arc/arc-protos.h (arc_split_move): Change prototype.
2479 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
2480 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
2481 (*movdf_insn): Likewise.
2482 * config/arc/arc.opt (mll64): New option.
2483 * config/arc/predicates.md (even_register_operand): New predicate.
2484 * doc/invoke.texi (ARC Options): Add mll64 documentation.
2486 2016-01-25 Richard Biener <rguenther@suse.de>
2489 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
2490 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
2492 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
2494 2016-01-25 Richard Biener <rguenther@suse.de>
2496 PR tree-optimization/69376
2497 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
2499 (VN_INFO_ANTI_RANGE_P): New inline.
2500 (VN_INFO_RANGE_TYPE): Likewise.
2501 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
2502 SSA_NAME_ANTI_RANGE_P.
2503 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
2504 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2505 Properly query VN_INFO_RANGE_TYPE.
2507 2016-01-25 Nick Clifton <nickc@redhat.com>
2510 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
2512 2016-01-23 Tom de Vries <tom@codesourcery.com>
2514 PR tree-optimization/69426
2515 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
2518 2016-01-23 Jakub Jelinek <jakub@redhat.com>
2520 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
2521 "the the" with "the" in the comments.
2522 * ipa-devirt.c (build_type_inheritance_graph,
2523 update_type_inheritance_graph): Likewise.
2524 * tree.c (build_function_type_list_1): Likewise.
2525 * cfgloopmanip.c (scale_loop_profile): Likewise.
2526 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
2527 * gimple-ssa-split-paths.c
2528 (find_block_to_duplicate_for_splitting_paths): Likewise.
2529 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
2530 * expr.c (convert_move): Likewise.
2531 * var-tracking.c (vt_stack_adjustments): Likewise.
2532 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
2533 * tree-vrp.c (test_for_singularity): Likewise.
2535 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
2536 directly instead of building a temporary tree.
2539 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
2540 remove <algorithm> include.
2542 2016-01-22 Jakub Jelinek <jakub@redhat.com>
2545 * config/i386/i386.c: Include dojump.h.
2546 (expand_small_movmem_or_setmem,
2547 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
2549 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
2550 if dynamic_check != -1.
2552 2016-01-21 Jeff Law <law@redhat.com>
2555 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
2556 record_temporary_equivalences. Rewritten to avoid unnecessary calls
2557 into dominated_by_p.
2558 (cprop_into_successor_phis): Avoid unnecessary tests.
2560 2016-01-22 Richard Henderson <rth@redhat.com>
2563 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
2564 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
2566 2016-01-22 Michael Matz <matz@suse.de>
2568 * system.h (string, algorithm): Include only conditionally.
2569 (new): Include always under C++.
2570 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
2571 * final.c (toplevel): Ditto.
2572 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
2573 * genconditions.c (write_header): Make gencondmd.c define
2575 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
2577 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
2578 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
2580 2016-01-22 Christian Bruel <christian.bruel@st.com>
2583 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
2585 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2588 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
2589 define_insn_and_split. Ensure operands[1] and operands[0] do not
2590 get assigned the same register.
2592 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
2594 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
2596 2016-01-22 Christian Bruel <christian.bruel@st.com>
2598 * config/arm/arm-c.c (arm_pragma_target_parse):
2599 Remove warn_builtin_macro_redefined overwrite.
2601 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
2603 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
2604 flag_non_call_exceptions compatibility.
2606 2016-01-22 Jakub Jelinek <jakub@redhat.com>
2609 * dwarf2out.c (add_child_die_after): New function.
2610 (dwarf_qual_info_t): New type.
2611 (dwarf_qual_info): New variable.
2612 (qualified_die_p): New function.
2613 (modified_type_die): For -fdebug-types-section, ensure
2614 canonical order of qualifiers. Put qualified DIEs adjacent
2615 to the corresponding non-qualified type DIE and search there
2616 for existing qualified DIEs.
2618 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
2620 * doc/extend.texi (scalar_storage_order type attribute): Document
2621 restriction on type punning and aliasing, and remove future tense.
2623 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
2626 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
2629 2016-01-21 Jeff Law <law@redhat.com>
2632 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
2633 useless call to record_temporary_equivalences.
2634 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
2635 allocate 10 slots in the bb_path vector and let it grow as needed.
2636 (fsm_find_control_statement_thread_paths): Similarly for the next_path
2639 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
2641 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
2643 * configure: Regenerate.
2645 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
2647 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
2648 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
2650 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
2653 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
2654 drop EXPAND_INITIALIZER.
2655 * rtl.h (contains_symbolic_reference_p): Declare.
2656 * rtlanal.c (contains_symbolic_reference_p): New function.
2657 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
2658 a subtraction into a NOT if symbolic constants are involved.
2660 2016-01-21 Anton Blanchard <anton@samba.org>
2661 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2664 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
2666 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
2669 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
2671 * config/microblaze/microblaze.c
2672 (get_branch_target): New.
2673 (insert_wic_for_ilb_runout): New.
2675 (microblaze_machine_dependent_reorg): New.
2676 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
2677 * config/microblaze/microblaze.md
2678 (UNSPEC_IPREFETCH): Define.
2679 (iprefetch): New pattern
2680 * config/microblaze/microblaze.opt
2681 (mxl-prefetch): New flag.
2683 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
2685 * config/microblaze/microblaze.h
2686 (FIXED_REGISTERS): Update in macro.
2687 (CALL_USED_REGISTERS): Update in macro.
2689 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
2691 PR rtl-optimization/68920
2692 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
2695 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
2697 PR rtl-optimization/68990
2698 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
2699 pseudo instead of inheritance ones.
2701 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2702 Nick Clifton <nickc@redhat.com>
2706 * config/mips/mips.c (mips_compute_frame_info): Initialise
2707 args_size and hard_frame_pointer_offset fields of the frame
2708 structure before calling mips_global_pointer.
2710 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
2712 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
2714 * configure: Regenerate.
2716 2016-01-21 Richard Biener <rguenther@suse.de>
2718 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
2720 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2722 * config/s390/s390.c (s390_asm_declare_function_size): Add code
2723 to actually emit the .size directive.
2725 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
2726 Jakub Jelinek <jakub@redhat.com>
2730 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
2731 args array size by one to avoid buffer overflow.
2733 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2735 * config/s390/s390.md (pool_section_start): Use switch_to_section
2736 to select proper read-only data section instead of hardcoding
2738 (pool_section_end): Use switch_to_section to match the above.
2740 2016-01-21 Richard Biener <rguenther@suse.de>
2742 PR tree-optimization/69378
2743 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
2744 (set_ssa_val_to): Use it for dominance checks taking into
2745 account not executable edges.
2747 2016-01-21 Jakub Jelinek <jakub@redhat.com>
2750 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
2751 for bitsize instead of GET_MODE_PRECISION (mode).
2753 2016-01-20 Martin Sebor <msebor@redhat.com>
2756 * extend.texi (__sync Builtins): Clarify the semantics of
2757 __sync_fetch_and_OP built-ins on pointers.
2758 (__atomic Builtins): Same.
2760 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2761 Sebastian Pop <s.pop@samsung.com>
2763 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
2764 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
2765 (is_valid_rename): Same.
2766 (translate_isl_ast_to_gimple::get_rename): Same.
2767 (translate_isl_ast_to_gimple::rename_all_uses): Same.
2768 (translate_isl_ast_to_gimple::rename_uses): Same.
2769 (get_new_name): Check for close_phi nodes.
2770 (copy_loop_phi_args): Use phi_node_kind.
2771 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2772 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
2774 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2775 Sebastian Pop <s.pop@samsung.com>
2777 Revert commit r229783.
2778 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2779 Remove use of parameter_rename_map.
2781 (copy_internal_parameters): Remove.
2782 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2783 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2784 (free_sese_info): Do not free parameter_rename_map.
2785 (set_rename): Do not use parameter_rename_map.
2786 (rename_uses): Update call to set_rename.
2787 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2788 * sese.h (parameter_rename_map_t): Remove.
2789 (struct sese_info_t): Remove field parameter_rename_map.
2791 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2792 Sebastian Pop <s.pop@samsung.com>
2794 * graphite-isl-ast-to-gimple.c: Fix comment.
2795 * graphite-scop-detection.c (defined_in_loop_p): New.
2796 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
2797 names defined in loop.
2799 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2800 Sebastian Pop <s.pop@samsung.com>
2802 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
2803 Discard unstructured if-then-else regions.
2805 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2806 Sebastian Pop <s.pop@samsung.com>
2808 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
2809 (cleanup_loop_iter_dom): Remove.
2810 (build_loop_iteration_domains): Remove.
2811 (build_scop_context): Remove.
2812 (build_scop_iteration_domain): Remove.
2813 (add_loop_constraints): New.
2814 (build_iteration_domains): New.
2815 (build_poly_scop): Call build_iteration_domains.
2817 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2818 Sebastian Pop <s.pop@samsung.com>
2820 * graphite-scop-detection.c
2821 (scop_detection::harmful_loop_in_region): Free dom and loops.
2822 (scop_detection::loop_body_is_valid_scop): Free bbs.
2824 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2825 Sebastian Pop <s.pop@samsung.com>
2827 * graphite-scop-detection.c (record_loop_in_sese): New.
2828 (gather_bbs::before_dom_children): Call record_loop_in_sese.
2829 (build_scops): Remove call to build_sese_loop_nests.
2830 * sese.c (sese_record_loop): Remove.
2831 (build_sese_loop_nests): Remove.
2832 (new_sese_info): Remove region->loops.
2833 (free_sese_info): Same.
2834 * sese.h (sese_contains_loop): Same.
2835 (build_sese_loop_nests): Remove.
2836 (sese_contains_loop): Remove.
2838 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2839 Sebastian Pop <s.pop@samsung.com>
2841 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
2842 loop_is_valid_in_scop.
2843 (scop_detection::harmful_stmt_in_region): Renamed
2844 harmful_loop_in_region.
2845 Call loop_is_valid_in_scop.
2847 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2848 Sebastian Pop <s.pop@samsung.com>
2850 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
2853 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2854 Sebastian Pop <s.pop@samsung.com>
2856 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
2857 * graphite.h (struct poly_bb): Remove field is_reduction.
2858 (PBB_IS_REDUCTION): Remove.
2860 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2861 Sebastian Pop <s.pop@samsung.com>
2863 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
2864 (add_pdr_constraints): Same.
2865 (scop_get_reads): Same.
2866 (scop_get_must_writes): Same.
2867 (scop_get_may_writes): Same.
2868 (scop_get_original_schedule): Same.
2869 (extend_schedule): Same.
2870 (apply_schedule_on_deps): Same.
2871 (carries_deps): Same.
2872 (compute_deps): Same.
2873 (scop_get_dependences): Same.
2874 * graphite-isl-ast-to-gimple.c
2875 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
2876 * graphite-optimize-isl.c (get_schedule_for_band): Same.
2877 (get_schedule_for_band_list): Same.
2878 (get_schedule_map): Same.
2879 (apply_schedule_map_to_scop): Same.
2880 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
2881 (build_loop_iteration_domains): Same.
2882 (add_condition_to_pbb): Same.
2883 (add_param_constraints): Same.
2884 (pdr_add_memory_accesses): Same.
2885 (pdr_add_data_dimensions): Same.
2887 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
2889 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
2892 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
2894 * common.opt (feliminate-dwarf2-dups): Replace references to
2895 "DWARF 2" with just "DWARF".
2896 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
2897 * doc/extend.texi: Likewise.
2898 * doc/cpp.texi: Likewise.
2899 * doc/invoke.texi: Likewise.
2900 (Option Summary): Add -gdwarf to list of Debugging Options.
2901 (Debugging Options): Document -gdwarf.
2902 * doc/contrib.texi: Spell "DWARF" like that.
2904 2016-01-21 Jakub Jelinek <jakub@redhat.com>
2906 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
2907 warning. Fix up formatting.
2910 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
2911 attempt to mark memory input operand addressable and
2912 call prepare_gimple_addressable in that case. Don't adjust
2913 input_location for diagnostics, use error_at instead.
2915 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
2917 * config/rs6000/ppc-auxv.h: New file.
2918 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
2920 (cpu_supports): Likewise.
2921 * config/rs6000/rs6000.c: include "ppc-auxv.h".
2922 (cpu_is_info): New variable.
2923 (cpu_supports_info): Likewise.
2924 (tcb_verification_symbol): Likewise.
2925 (cpu_builtin_p): Likewise.
2926 (cpu_expand_builtin): New function.
2927 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
2928 (rs6000_init_builtins): Likewise.
2929 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
2930 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
2931 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
2932 * configure: Regenerate.
2933 * config.in: Likewise.
2934 * doc/extend.texi (PowerPC Built-in Functions): Document
2935 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
2937 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
2940 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
2942 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
2945 2016-01-20 Richard Henderson <rth@redhat.com>
2951 * tree.c (tm_define_builtin): New.
2952 (find_tm_vector_type): New.
2953 (build_tm_vector_builtins): New.
2954 (build_common_builtin_nodes): Call it.
2956 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
2958 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
2959 (arm_fp_ok): Likewise.
2961 (arm_crypto): Likewise.
2963 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
2964 Richard Biener <rguenther@suse.de>
2966 PR tree-optimization/69328
2967 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
2968 vectors have same number of elements.
2969 (vectorizable_condition): Fix masked version recognition.
2971 2016-01-20 Richard Biener <rguenther@suse.de>
2973 PR tree-optimization/69345
2974 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
2975 (VN_INFO_PTR_INFO): Likewise.
2976 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
2977 info when it is equal between non-dominating SSA names.
2978 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2979 Make sure to look at original SSA infos.
2981 2016-01-20 Jeff Law <law@redhat.com>
2984 * config/m68k/predicates.md (pow2_m1_operand): New predicate
2986 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
2987 (pc_or_label_operand): New predicate.
2988 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
2989 tests for small integers that are 2^n - 1.
2991 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
2993 * doc/invoke.texi (Options Summary): Add '.' after @xref.
2995 2016-01-19 Jeff Law <law@redhat.com>
2998 * tree-ssa-threadbackwards.c
2999 (fsm_find_control_statement_thread_paths): Do not try to lookup
3000 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
3002 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
3004 * doc/lto.texi: Remove text that says only Gold has linker plugin
3007 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
3009 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
3010 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
3011 the DIE accordingly.
3012 (modified_type_die): Add REVERSE parameter and pass it recursively,
3013 as well as to base_type_die. Adjust presence check accordingly.
3014 (base_type_for_mode): Adjust call to modified_type_die.
3015 (add_type_attribute): Add REVERSE parameter and pass it to
3017 (generic_parameter_die): Adjust call to add_type_attribute.
3018 (add_scalar_info): Likewise.
3019 (add_subscript_info): Likewise.
3020 (gen_array_type_die): Likewise.
3021 (gen_descr_array_type_die): Likewise.
3022 (gen_entry_point_die): Likewise.
3023 (gen_enumeration_type_die): Likewise.
3024 (gen_formal_parameter_die): Likewise.
3025 (gen_subprogram_die): Likewise.
3026 (gen_variable_die ): Likewise.
3027 (gen_const_die): Likewise.
3028 (gen_field_die): Likewise.
3029 (gen_pointer_type_die): Likewise.
3030 (gen_reference_type_die): Likewise.
3031 (gen_ptr_to_mbr_type_die): Likewise.
3032 (gen_inheritance_die): Likewise.
3033 (gen_subroutine_type_die): Likewise.
3034 (gen_typedef_die): Likewise.
3035 (force_type_die): Adjust call to modified_type_die.
3037 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
3039 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
3040 flow throughout the file. Fix broken link to Objective-C 2.0
3042 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
3045 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3047 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
3049 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3052 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
3053 (maybe_record_node): Record cxa_pure_virtual as the only possible
3054 target if there are not ohter candidates.
3055 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
3057 2016-01-19 Richard Biener <rguenther@suse.de>
3059 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
3060 (get_memory_order): Likewise.
3062 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
3064 * tree-vect-stmts.c (vectorizable_store): Check
3067 2016-01-19 David Malcolm <dmalcolm@redhat.com>
3070 * gcc.c (driver::decode_argv): Add call to
3071 init_opts_obstack before init_options_struct.
3072 * opts.c (init_opts_obstack): Remove idempotency.
3073 (init_options_struct): Replace call to init_opts_obstack
3074 with a gcc_assert to verify that it has already been called.
3075 * toplev.c (toplev::main): Add call to init_opts_obstack before
3076 calls to init_options_struct.
3077 (toplev::finalize): Move cleanup of opts_obstack next to
3078 cleanup of save_decoded_options, clearing the latter, and
3079 save_decoded_options_count.
3081 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3084 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
3085 attribute to unconditional. Remove %? from output template.
3087 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3088 Jiong Wang <jiong.wang@arm.com>
3090 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
3091 generated from different expand order.
3093 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3095 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
3096 Add support for CCMP costing.
3098 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3100 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
3101 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
3102 (fccmpe<mode>): Likewise.
3103 (fcmp): Rename to fcmp and globalize pattern.
3105 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
3106 (aarch64_gen_ccmp_next): Add FP support.
3108 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
3110 * target.def (gen_ccmp_first): Update documentation.
3111 (gen_ccmp_next): Likewise.
3112 * doc/tm.texi (gen_ccmp_first): Update documentation.
3113 (gen_ccmp_next): Likewise.
3114 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
3115 expand_ccmp_expr_1. Improve comments.
3116 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
3117 (ccmp_ior<mode>): Remove pattern.
3118 (cmp<mode>): Remove expand.
3119 (cmp): Globalize pattern.
3120 (cstorecc4): Use cc_register.
3121 (mov<mode>cc): Remove ccmp_cc_register check.
3122 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
3123 Simplify after removal of CC_DNE/* modes.
3124 (aarch64_ccmp_mode_to_code): Remove.
3125 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
3126 In 'k' case use integer as condition.
3127 (aarch64_nzcv_codes): Remove inverted cases.
3128 (aarch64_code_to_ccmode): Remove.
3129 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
3130 comparison with CC register to be used in folowing CCMP/branch/CSEL.
3131 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
3132 pattern. Return the comparison with CC register. Invert conditions
3134 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
3135 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
3137 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3139 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
3140 instrumented_version.
3142 2016-01-19 Richard Biener <rguenther@suse.de>
3144 PR tree-optimization/69336
3145 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
3146 handled components with get_ref_base_and_extent.
3147 (equal_mem_array_ref_p): Adjust.
3149 2016-01-19 Jakub Jelinek <jakub@redhat.com>
3152 * shrink-wrap.c: Include valtrack.h.
3153 (move_insn_for_shrink_wrap): Add DEBUG argument. If
3154 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
3155 in between insn and where it will be moved to. Call
3156 dead_debug_insert_temp.
3157 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
3158 first and dead_debug_local_finish at the end.
3159 For uses and defs bitmap, handle all regs in between REGNO and
3160 END_REGNO, not just the first one.
3162 2016-01-19 Richard Biener <rguenther@suse.de>
3164 PR tree-optimization/69352
3165 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
3166 (equal_mem_array_ref_p): Constrain size and max size properly.
3167 Compare the reverse flag.
3169 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
3171 * ira.c (ira): Update regstat data if we deleted insns.
3173 2016-01-19 Jakub Jelinek <jakub@redhat.com>
3175 PR rtl-optimization/68955
3176 PR rtl-optimization/64557
3177 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
3178 here. Fix up formatting.
3179 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
3181 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3184 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
3185 assume that the node has body.
3186 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
3189 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3191 * lto-streamer-out.c (lto_output): Do not stream instrumentation
3194 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3196 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
3197 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
3199 2016-01-19 Martin Jambor <mjambor@suse.cz>
3200 Martin Liska <mliska@suse.cz>
3201 Michael Matz <matz@suse.de>
3203 * Makefile.in (OBJS): Add new source files.
3204 (GTFILES): Add hsa.c.
3205 * common.opt (disable_hsa): New variable.
3206 (-Whsa): New warning.
3207 * config.in (ENABLE_HSA): New.
3208 * configure.ac: Treat hsa differently from other accelerators.
3209 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
3211 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
3212 * doc/install.texi (Configuration): Document --with-hsa-runtime,
3213 --with-hsa-runtime-include, --with-hsa-runtime-lib and
3215 * doc/invoke.texi (-Whsa): Document.
3216 (hsa-gen-debug-stores): Likewise.
3217 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
3218 to invoke offload compiler for hsa acclerator.
3219 * opts.c (common_handle_option): Determine whether HSA offloading
3220 should be performed.
3221 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
3222 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
3223 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
3224 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
3225 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
3226 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
3227 GF_OMP_FOR_KIND_GRID_LOOP.
3228 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
3229 (pp_gimple_stmt_1): Likewise.
3230 * gimple-walk.c (walk_gimple_stmt): Likewise.
3231 * gimple.c (gimple_build_omp_grid_body): New function.
3232 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
3233 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
3234 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
3235 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
3236 GF_OMP_TEAMS_GRID_PHONY.
3237 (gimple_statement_omp_single_layout): Updated comments.
3238 (gimple_build_omp_grid_body): New function.
3239 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
3240 (gimple_omp_for_grid_phony): New function.
3241 (gimple_omp_for_set_grid_phony): Likewise.
3242 (gimple_omp_parallel_grid_phony): Likewise.
3243 (gimple_omp_parallel_set_grid_phony): Likewise.
3244 (gimple_omp_teams_grid_phony): Likewise.
3245 (gimple_omp_teams_set_grid_phony): Likewise.
3246 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
3247 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
3248 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
3249 (BUILT_IN_GOMP_TARGET): Updated type.
3250 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
3251 (adjust_for_condition): New function.
3252 (get_omp_for_step_from_incr): Likewise.
3253 (extract_omp_for_data): Moved parts to adjust_for_condition and
3254 get_omp_for_step_from_incr.
3255 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
3256 (fixup_child_record_type): Bail out if receiver_decl is NULL.
3257 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
3258 (scan_omp_parallel): Do not create child functions for phony
3260 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
3261 (scan_omp_1_op): Checking assert we are not remapping to
3262 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
3263 (parallel_needs_hsa_kernel_p): New function.
3264 (expand_parallel_call): Register apprpriate parallel child
3265 functions as HSA kernels.
3266 (grid_launch_attributes_trees): New type.
3267 (grid_attr_trees): New variable.
3268 (grid_create_kernel_launch_attr_types): New function.
3269 (grid_insert_store_range_dim): Likewise.
3270 (grid_get_kernel_launch_attributes): Likewise.
3271 (get_target_argument_identifier_1): Likewise.
3272 (get_target_argument_identifier): Likewise.
3273 (get_target_argument_value): Likewise.
3274 (push_target_argument_according_to_value): Likewise.
3275 (get_target_arguments): Likewise.
3276 (expand_omp_target): Call get_target_arguments instead of looking
3277 up for teams and thread limit.
3278 (grid_expand_omp_for_loop): New function.
3279 (grid_arg_decl_map): New type.
3280 (grid_remap_kernel_arg_accesses): New function.
3281 (grid_expand_target_kernel_body): New function.
3282 (expand_omp): Call it.
3283 (lower_omp_for): Do not emit phony constructs.
3284 (lower_omp_taskreg): Do not emit phony constructs but create for them
3285 a temporary variable receiver_decl.
3286 (lower_omp_taskreg): Do not emit phony constructs.
3287 (lower_omp_teams): Likewise.
3288 (lower_omp_grid_body): New function.
3289 (lower_omp_1): Call it.
3290 (grid_reg_assignment_to_local_var_p): New function.
3291 (grid_seq_only_contains_local_assignments): Likewise.
3292 (grid_find_single_omp_among_assignments_1): Likewise.
3293 (grid_find_single_omp_among_assignments): Likewise.
3294 (grid_find_ungridifiable_statement): Likewise.
3295 (grid_target_follows_gridifiable_pattern): Likewise.
3296 (grid_remap_prebody_decls): Likewise.
3297 (grid_copy_leading_local_assignments): Likewise.
3298 (grid_process_kernel_body_copy): Likewise.
3299 (grid_attempt_target_gridification): Likewise.
3300 (grid_gridify_all_targets_stmt): Likewise.
3301 (grid_gridify_all_targets): Likewise.
3302 (execute_lower_omp): Call grid_gridify_all_targets.
3303 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
3304 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
3305 (tree_omp_clause): Added union field dimension.
3306 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
3307 * tree.c (omp_clause_num_ops): Added number of arguments of
3308 OMP_CLAUSE__GRIDDIM_.
3309 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
3310 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
3311 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
3312 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
3313 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
3314 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
3315 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
3316 * tree-pass.h (make_pass_gen_hsail): Declare.
3317 (make_pass_ipa_hsa): Likewise.
3318 * ipa-hsa.c: New file.
3319 * lto-section-in.c (lto_section_name): Add hsa section name.
3320 * lto-streamer.h (lto_section_type): Add hsa section.
3321 * timevar.def (TV_IPA_HSA): New.
3322 * hsa-brig-format.h: New file.
3323 * hsa-brig.c: New file.
3324 * hsa-dump.c: Likewise.
3325 * hsa-gen.c: Likewise.
3328 * toplev.c (compile_file): Call hsa_output_brig.
3329 * hsa-regalloc.c: New file.
3331 2016-01-18 Jeff Law <law@redhat.com>
3333 PR tree-optimization/69320
3334 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
3335 ranged object, do nothing if the RHS constant is not [0..1].
3336 (optimize_stmt): Comparing a boolean ranged object against a
3337 constant outside [0..1] results in a compile-time constant.
3339 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
3342 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
3344 * doc/invoke.texi (Invoking GCC): Add new section to menu.
3345 (Option Summary): Update to reflect new section and moved options.
3346 (C++ Dialect Options): Move -fstats to new section.
3347 (Debugging Options): Move all dump, statistics, and other GCC
3348 developer options to new section. Rewrite section introduction
3349 and re-order remaining options to put the more basic ones first.
3350 (Optimization Options): Move -fira-verbose and -flto-report* to
3352 (Developer Options): New section incorporating moved options.
3353 * doc/cppopts.texi (-dM): Update cross-reference.
3355 2016-01-18 Richard Henderson <rth@redhat.com>
3358 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
3359 operands to pseudo only if CSE is expected. Split long immediate
3360 operands only after reload, and for the stack pointer.
3361 (*add<GPI>3_pluslong): Remove.
3362 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
3363 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
3364 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
3365 (*add<GPI>3 peepholes): New.
3366 (*add<GPI>3 splitters): New.
3367 * config/aarch64/constraints.md (Upl): New.
3368 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
3370 2016-01-18 Richard Biener <rguenther@suse.de>
3372 PR tree-optimization/69297
3373 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
3375 (vect_bb_vectorization_profitable_p): Clear visited flag again.
3377 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
3380 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
3381 of mixind vector and scalar types.
3382 (fold_relational_const): Add handling of vector
3383 comparison with boolean result.
3384 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
3385 comparison of vector operands with boolean result for EQ/NE only.
3386 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
3387 (verify_gimple_cond): Likewise.
3388 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
3391 2016-01-18 Joseph Myers <joseph@codesourcery.com>
3393 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
3396 2016-01-18 Richard Biener <rguenther@suse.de>
3399 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
3401 2016-01-18 Tom de Vries <tom@codesourcery.com>
3403 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
3405 2016-01-18 Tom de Vries <tom@codesourcery.com>
3407 * omp-low.c (set_oacc_fn_attrib): Make extern.
3408 * omp-low.h (set_oacc_fn_attrib): Declare.
3409 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
3410 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
3411 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
3412 Add and handle function parameter oacc_kernels_p.
3413 (find_reduc_addr, get_omp_data_i_param): New function.
3414 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
3415 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
3416 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
3417 Calculate dominance info. Skip loops that are not in a kernels region
3418 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
3419 (pass_parallelize_loops::execute): Call parallelize_loops with
3420 oacc_kernels_p argument.
3421 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
3422 New member function.
3423 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
3424 * passes.def: Add argument to pass_parallelize_loops instantation.
3426 2016-01-18 Tom de Vries <tom@codesourcery.com>
3428 * tree-parloops.c (pass_parallelize_loops::execute): Allow
3429 pass_parallelize_loops to be run outside the loop pipeline.
3431 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3433 * tree-scalar-evolution.c (follow_copies_to_constant): New.
3434 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
3436 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3439 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
3440 using get_ref_base_and_extent.
3441 (equal_mem_array_ref_p): New.
3442 (hashable_expr_equal_p): Add call to previous.
3444 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3447 * tree-sra.c (disqualified_constants, constant_decl_p): New.
3448 (sra_initialize): Allocate disqualified_constants.
3449 (sra_deinitialize): Free disqualified_constants.
3450 (disqualify_candidate): Update disqualified_constants when appropriate.
3451 (create_access): Scan for constant-pool entries as we go along.
3452 (scalarizable_type_p): Add check against type_contains_placeholder_p.
3453 (maybe_add_sra_candidate): Allow constant-pool entries.
3454 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
3455 (initialize_constant_pool_replacements): New.
3456 (sra_modify_assign): Avoid mangling assignments created by previous,
3457 and don't generate writes into constant pool.
3458 (sra_modify_function_body): Call initialize_constant_pool_replacements.
3460 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3462 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
3464 (scalar_chain::convert_op): Likewise.
3465 * config/i386/i386.md (*andndi3_doubleword): New.
3467 2016-01-18 Richard Biener <rguenther@suse.de>
3469 PR tree-optimization/69170
3470 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
3471 building a vector from scalar results of a pattern stmt.
3473 2016-01-18 Jakub Jelinek <jakub@redhat.com>
3475 * haifa-sched.c (autopref_multipass_init): Work around
3476 -Wmaybe-uninitialized warning.
3478 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
3480 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
3481 against the constant 0.
3483 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3485 PR tree-optimization/68799
3486 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
3487 look up phi candidates in the statement-candidate map.
3488 (phi_add_costs): Likewise.
3489 (record_phi_increments): Likewise.
3490 (phi_incr_cost): Likewise.
3491 (ncd_with_phi): Likewise.
3492 (all_phi_incrs_profitable): Likewise.
3494 2016-01-17 Jakub Jelinek <jakub@redhat.com>
3496 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
3497 -Wmaybe-uninitialized warning.
3499 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
3501 * doc/invoke.texi (Invoking GCC): Add new section to menu.
3502 (Option Summary): Update to reflect new section and moved options.
3503 (C++ Dialect Options): Move -fvtable-verify and related options.
3504 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
3505 and profiling-related options.
3506 (Optimization Options): Move profile generation options and
3507 -fstack-protector and related options.
3508 (Instrumentation Options): New section incorporating moved options.
3509 (Code Generation Options): Move -finstrument-functions and
3510 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
3512 2016-01-16 Tom de Vries <tom@codesourcery.com>
3514 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
3516 2016-01-16 Tom de Vries <tom@codesourcery.com>
3518 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
3520 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
3522 * hash-table.h (hash_table::empty): Turn into an inline wrapper
3523 that checks whether the table is already empty. Rename the
3524 original implementation to...
3525 (hash_table::empty_slot): ...this new private function.
3527 2016-01-15 David Malcolm <dmalcolm@redhat.com>
3530 * diagnostic-show-locus.c (layout::print_source_line): Move x
3531 offset of line until after call to
3532 get_line_width_without_trailing_whitespace.
3534 2016-01-15 Jeff Law <law@redhat.com>
3536 PR tree-optimization/69270
3537 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
3538 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
3539 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
3540 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
3541 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
3542 ssa_name_has_boolean_range and constant_boolean_node.
3544 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
3546 PR rtl-optimization/69030
3547 * lra-spills.c (remove_pseudos): Check nrefs and make the function
3549 (spill_pseudos): Delete debug insn for dead pseudo.
3550 (lra_spill): Initiate spill_hard_reg and slots memory separately.
3552 2016-01-15 Jiong Wang <jiong.wang@arm.com>
3554 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
3556 (TYPES_UNOPUS): Likewise.
3557 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
3558 builtin type, from UNOP to UNOPUS.
3559 (lbtruncuv4sf): Likewise.
3560 (lbtruncuv2df): Likewise.
3561 (lrounduv2sf): Likewise.
3562 (lrounduv4sf): Likewise.
3563 (lrounduv2df): Likewise.
3564 (lroundusf): Likewise.
3565 (lroundusf): Likewise.
3566 (lceiluv2sf): Likewise.
3567 (lceiluv4sf): Likewise.
3568 (lceiluv2df): Likewise.
3569 (lceilusf): Likewise.
3570 (lceiludf): Likewise.
3571 (lflooruv2sf): Likewise.
3572 (lflooruv4sf): Likewise.
3573 (lflooruv2df): Likewise.
3574 (lfloorusf): Likewise.
3575 (lfloorudf): Likewise.
3576 (lfrintnuv2sf): Likewise.
3577 (lfrintnuv4sf): Likewise.
3578 (lfrintnuv2df): Likewise.
3579 (lfrintnusf): Likewise.
3580 (lfrintnudf): Likewise.
3581 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
3583 (vcvtq_u32_f32): Likewise.
3584 (vcvtq_u64_f64): Likewise.
3585 (vcvta_u32_f32): Likewise.
3586 (vcvtaq_u32_f32): Likewise.
3587 (vcvtaq_u64_f64): Likewise.
3588 (vcvtm_u32_f32): Likewise.
3589 (vcvtmq_u32_f32): Likewise.
3590 (vcvtmq_u64_f64): Likewise.
3591 (vcvtn_u32_f32): Likwise.
3592 (vcvtnq_u32_f32): Likewise.
3593 (vcvtnq_u64_f64): Likewise.
3594 (vcvtp_u32_f32): Likewise.
3595 (vcvtpq_u32_f32): Likewise.
3596 (vcvtpq_u64_f64): Likewise.
3597 (vcvtmd_u64_f64): Likewise.
3598 (vcvtms_u32_f32): Likewise.
3599 (vcvtad_u64_f64): Likewise.
3600 (vcvtas_u32_f32): Likewise.
3601 (vcvtnd_u64_f64): Likewise.
3602 (vcvtns_u32_f32): Likewise.
3603 (vcvtpd_u64_f64): Likewise.
3604 (vcvtps_u32_f32): Likewise.
3606 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3608 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
3609 CSEL of zero_extended registers.
3611 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3613 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
3614 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
3616 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3618 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
3619 false when argument string is not found in the attributes table
3622 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
3625 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
3626 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
3627 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
3630 2016-01-15 Richard Biener <rguenther@suse.de>
3632 PR tree-optimization/66856
3633 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
3634 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
3635 (vect_create_new_slp_node): Increment stmt reference count.
3636 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
3637 an SLP tree before swapping operands.
3638 (vect_build_slp_tree): Likewise.
3639 (destroy_bb_vec_info): Free stmt info after SLP instances.
3640 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
3641 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
3642 (STMT_VINFO_NUM_SLP_USES): New macro.
3644 2016-01-15 Richard Biener <rguenther@suse.de>
3647 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
3648 (add_linkage_name): ... here.
3649 (gen_typedef_die): Use add_linkage_name_raw instead of
3650 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
3653 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
3655 * gimplify.c (oacc_default_clause): Decode reference and pointer
3656 types for both kernels and parallel regions.
3658 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
3661 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
3663 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
3665 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
3666 (convert_scalars_to_vector): Likewise.
3668 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
3670 * doc/extend.texi (Type Traits): Fix grammar.
3672 2016-01-15 Martin Jambor <mjambor@suse.cz>
3674 * tree-inline.c (remap_decl): Use existing dclarations if
3675 remapping a type and prevent_decl_creation_for_types.
3676 (replace_locals_stmt): Do an initial remapping of non-VLA typed
3677 decls first. Do real remapping with
3678 prevent_decl_creation_for_types set.
3679 * tree-inline.h (copy_body_data): New field
3680 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
3683 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3685 * config/s390/s390.opt (mmvcle): More verbose help text.
3687 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3689 * config/s390/s390.opt: Add period to -mzvector option text.
3691 2016-01-15 Richard Biener <rguenther@suse.de>
3693 PR tree-optimization/68961
3694 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
3695 of invariants in stores again.
3697 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
3699 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
3701 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
3703 * config/i386/i386.c (ix86_expand_branch): Don't split
3704 DI mode xor instruction to SI mode.
3706 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
3709 * ipa-icf.c (sem_function::merge): Virtual functions may become
3710 reachable even if they address is not taken and there are no
3713 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
3715 * lto-streamer-out.c (subtract_estimated_size): New function.
3716 (get_symbol_initial_value): Use it.
3718 2016-01-15 Christian Bruel <christian.bruel@st.com>
3721 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
3722 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
3723 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
3724 use add_builtin_function_ext_scope instead of add_builtin_function.
3725 (neon_set_p, neon_crypto_set_p): Remove.
3726 (arm_init_builtins): Always call arm_init_neon_builtins and
3727 arm_init_crypto_builtins.
3728 (arm_expand_builtin): Check that builtins are allowed for the arch.
3729 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
3730 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
3731 arm_init_neon_builtins call.
3733 2016-01-15 Richard Biener <rguenther@suse.de>
3735 PR tree-optimization/69117
3736 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
3737 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
3738 of the leader conservatively.
3739 (free_scc_vn): Restore original SSA name infos.
3741 2016-01-14 Jeff Law <law@redhat.com>
3743 PR tree-optimization/69270
3744 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
3745 single bit of precision, verify it's also unsigned.
3746 (record_edge_info): Use constant_boolean_node rather than fold_convert
3747 to convert boolean_true/boolean_false to the right type.
3749 2016-01-14 Richard Henderson <rth@redhat.com>
3752 * loop-doloop.c (record_reg_sets): New.
3753 (doloop_optimize): Reject the transform if the sequence
3754 clobbers registers live at the end of the loop block.
3755 (doloop_optimize_loops): Enable df_live if needed.
3757 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3759 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
3760 * gcc/config/rs6000/rs6000.c: Likewise.
3761 * gcc/config/rs6000/rs6000.h: Likewise.
3762 * gcc/config/rs6000/rs6000.md: Likewise.
3763 * gcc/doc/extend.texi: Likewsie.
3765 2016-01-14 Jeff Law <law@redhat.com>
3767 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
3770 2016-01-14 Richard Henderson <rth@redhat.com>
3774 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
3775 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
3776 instead of builtin_decl_declared_p to test for declaration.
3778 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
3780 * doc/loop.texi (Loop Analysis and Representation): Document
3781 loop_depth function.
3783 2016-01-14 Tom de Vries <tom@codesourcery.com>
3785 PR tree-optimization/68773
3786 * omp-low.c (expand_omp_target): Don't set force_output.
3787 * varpool.c (varpool_node::get_create): Same.
3788 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
3789 offload_funcs with force_output.
3791 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3794 * lra-eliminations.c (move_plus_up): Don't change anything if either
3795 the outer or inner subreg mode is not MODE_INT.
3796 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
3797 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
3799 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
3801 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
3802 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
3803 reduc_uplus_@var{m}): Remove.
3804 * expr.c (expand_expr_real_2): Remove expansion path for
3805 reduc_[us](min|max|plus) optabs.
3806 * optabs-tree.c (scalar_reduc_to_vector): Remove.
3807 * optabs-tree.h (scalar_reduc_to_vector): Remove.
3808 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
3809 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
3810 * tree-vect-loop.c (vectorizable_reduction): Remove test for
3811 reduc_[us](min|max|plus) optabs.
3813 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
3815 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
3816 (reduc_plus_scal_v2sf): New.
3817 (reduc_smax_v2sf): Rename to...
3818 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
3819 (reduc_smin_v2sf): Rename to...
3820 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
3822 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
3824 * alias.c (compare_base_symbol_refs): New function.
3825 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
3828 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3831 PR tree-optimization/69155
3832 * tree-complex.c: Include cfganal.h.
3833 (phis_to_revisit): New variable.
3834 (extract_component): Add phiarg_p argument. Assert that returned
3835 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
3836 (update_phi_components): Partly rewrite to use loop over real/imag
3837 components instead of code duplication. If extract_component returns
3838 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
3839 create_tmp_reg into the PHI node instead, and mention the phi triplet
3841 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
3842 in phis_to_revisit at the end.
3844 2016-01-14 Richard Biener <rguenther@suse.de>
3846 PR tree-optimization/68060
3847 * tree-vect-loop.c (vect_is_simple_reduction): Check the
3848 outer loop reduction is only used in the inner loop before
3849 detecting a double reduction.
3851 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3854 * combine.c (expand_field_assignment): Punt if compute_mode is
3855 unsupported scalar mode.
3857 2016-01-14 Richard Biener <rguenther@suse.de>
3859 PR tree-optimization/66856
3860 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
3861 SLP node only if it built successfully.
3862 (vect_analyze_slp_instance): Adjust.
3864 2016-01-14 Jeff Law <law@redhat.com>
3866 PR tree-optimization/69270
3867 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
3868 (record_edge_info): Use it. Convert boolean_{true,false}_node
3871 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
3874 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
3875 use block_ultimate_origin
3876 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
3878 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
3880 * doc/invoke.texi (Submodel Options): Rename section to
3881 "Machine-Dependent Options" to better reflect its content.
3882 Rewrite introductory text to remove archaic CPU names.
3885 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
3887 * doc/invoke.texi (Code Gen Options): Move section up in file,
3888 before target-specific options. Update menu and option summary
3889 to reflect the new section ordering.
3891 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
3893 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
3894 (C++ Dialect Options): Add cross-reference to -std option.
3895 * doc/standards.texi (C++ Language): Document C++14 support.
3897 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3899 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
3900 for pack/unpack functions for __ibm128.
3901 (PACK_IF): Likewise.
3902 (UNPACK_IF): Likewise.
3904 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
3905 support for __ibm128 pack/unpack functions.
3906 (rs6000_invalid_builtin): Likewise.
3907 (rs6000_init_builtins): Likewise.
3908 (rs6000_opt_masks): Likewise.
3910 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
3911 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
3913 (RS6000_BTM_COMMON): Likewise.
3915 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
3916 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
3917 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
3918 128-bit floating point. Add support for the double values to be
3919 in Altivec registers for TF/IF packing and unpacking, but restrict
3920 TD packing sub-fields to be FPR registers. Don't allow overlapped
3921 register support for packing. Allow pack inputs to be memory
3922 locations. Don't build generator functions for unpack<mode>_dm
3923 and unpack<mode>_nodm.
3924 (unpack<mode>_dm): Likewise.
3925 (unpack<mode>_nodm): Likewise.
3926 (pack<mode>): Likewise.
3928 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
3929 built-in functions to pack/unpack explicit __ibm128 values.
3930 (__builtin_unpack_ibm128): Likewise.
3932 * doc/extend.texi (PowerPC Built-in Functions): Document
3933 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
3935 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
3938 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
3939 Add new arg loc and pass it down as context.
3940 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
3941 to the location to use for the warning.
3942 (check_function_arguments): New arg loc. All callers changed. Pass
3943 it to check_function_nonnull.
3944 * c-common.h (check_function_arguments): Adjust declaration.
3946 2016-01-13 Jakub Jelinek <jakub@redhat.com>
3948 PR tree-optimization/69156
3949 * gimple.c (validate_type): Removed.
3950 (gimple_builtin_call_types_compatible_p): Use
3951 useless_type_conversion_p instead of validate_type.
3952 * value-prof.c (gimple_stringop_fixed_value): Fold
3953 icall_size to correct type.
3955 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
3957 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
3960 2016-01-13 Richard Henderson <rth@redhat.com>
3963 * target.def (builtin_tm_load, builtin_tm_store): Remove.
3964 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
3965 (ix86_builtin_tm_store): Remove.
3966 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
3967 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
3968 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
3969 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
3970 * doc/tm.texi: Rebuild.
3972 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
3973 (BUILT_IN_TM_MEMCPY_RTWN): New.
3974 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
3975 fallback from vector to integer helpers.
3976 (build_tm_load): Handle vector types directly, instead of
3978 (build_tm_store): Likewise.
3979 (expand_assign_tm): Prepare for register types not handled by
3980 the above. Copy them to memory and use memcpy.
3981 * tree.c (tm_define_builtin): New.
3982 (find_tm_vector_type): New.
3983 (build_tm_vector_builtins): New.
3984 (build_common_builtin_nodes): Call it.
3986 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
3988 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
3989 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
3991 2016-01-13 Tom de Vries <tom@codesourcery.com>
3993 PR tree-optimization/69169
3994 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
3995 handled_struct_type param.
3996 (create_variable_info_for, intra_create_variable_infos): Call
3997 create_variable_info_for_1 with extra arg.
3999 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
4001 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
4002 and "armv8.1-a+crc" entries.
4004 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
4007 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
4008 Change first operand predicate from register_or_constm1_operand
4009 to register_operand.
4010 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
4011 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
4012 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
4013 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
4014 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
4015 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
4016 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
4017 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
4018 comparison with constm1_rtx from vec_prefetch_gen part.
4020 2016-01-13 Richard Biener <rguenther@suse.de>
4022 PR tree-optimization/69013
4023 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
4024 Exchange assert for a test.
4026 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4029 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
4031 2016-01-13 Richard Biener <rguenther@suse.de>
4033 PR tree-optimization/69242
4034 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
4035 assert with a check.
4037 2016-01-13 Richard Biener <rguenther@suse.de>
4039 PR tree-optimization/69186
4040 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4041 Properly guard vect_update_misalignment_for_peel call.
4043 2016-01-12 Jeff Law <law@redhat.com>
4045 PR tree-optimization/pr67755
4046 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
4047 "need_profile_correction".
4048 (thread_block_1): Initialize new field to false by default. If we
4049 have multiple thread paths through a common joiner to different
4050 final targets, then set new field to true.
4051 (compute_path_counts): Only do count adjustment when it's really
4054 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
4056 * doc/invoke.texi (Spec Files): Move section down in file, past
4057 all command-line option descriptions.
4059 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4062 * doc/gty.texi: Remove documentation of mark_hook.
4063 * gengtype.c (struct write_types_data): Remove code to support
4064 mark_hook attribute.
4065 (walk_type): Likewise.
4066 (write_func_for_structure): Likewise.
4068 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
4070 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
4071 Directory Options, and -specs= to Overall Options.
4072 (Overall Options): Adjust similarly. Reorder to group related
4073 options together. Make -specs= cross-reference the spec file details.
4074 (Directory Options): Adjust similarly.
4076 2016-01-12 Jeff Law <law@redhat.com>
4078 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
4080 2016-01-12 Olivier Hainque <hainque@adacore.com>
4082 * gcc.c (spec_undefvar_allowed): New global.
4083 (process_command): Set to true when running for --version or --help,
4085 (getenv_spec_function): When the variable is not defined, use the
4086 variable name as the variable value if we're allowed not to issue
4089 2016-01-12 Bin Cheng <bin.cheng@arm.com>
4091 PR tree-optimization/68911
4092 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
4093 information computed for expression "init + nit * step".
4095 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
4097 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
4098 about name of GCC executable. Remove deleted node from menu.
4099 (Directory Options) <-B>: Remove cross-reference to deleted node.
4100 (Target Options): Delete section.
4102 2016-01-12 Christian Bruel <christian.bruel@st.com>
4105 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
4106 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
4108 2016-01-12 Jakub Jelinek <jakub@redhat.com>
4111 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
4112 aligned_mem is properly set for AVX512-VL floating point masked
4116 * ifcvt.c (cond_exec_process_if_block): When removing the last
4117 insn from then_bb, remove also any possible barriers that follow it.
4119 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
4123 * config/i386/iamcu.h (SIZE_TYPE): New macro.
4124 (PTRDIFF_TYPE): Likewise.
4125 (WCHAR_TYPE): Likewise.
4126 (WCHAR_TYPE_SIZE): Likewise.
4127 (STDINT_LONG32): Likewise.
4129 2016-01-12 Richard Biener <rguenther@suse.de>
4131 PR tree-optimization/69053
4132 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
4133 convert initial value for cond reductions.
4135 2016-01-12 Richard Biener <rguenther@suse.de>
4137 PR tree-optimization/69007
4138 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
4139 widen_sum after dot_prod and sad.
4141 2016-01-12 Richard Biener <rguenther@suse.de>
4143 PR tree-optimization/69168
4144 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
4145 pattern stmt SLP type.
4146 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
4147 end up unused so cope with that case.
4149 2016-01-12 Richard Biener <rguenther@suse.de>
4151 PR tree-optimization/69157
4152 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
4153 stmts def type only during analyze phase.
4154 (vectorizable_call): Likewise.
4155 (vectorizable_simd_clone_call): Likewise.
4156 (vectorizable_conversion): Likewise.
4157 (vectorizable_assignment): Likewise.
4158 (vectorizable_shift): Likewise.
4159 (vectorizable_operation): Likewise.
4160 (vectorizable_store): Likewise.
4161 (vectorizable_load): Likewise.
4163 2016-01-12 Richard Biener <rguenther@suse.de>
4165 PR tree-optimization/69174
4166 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
4168 (vectorizable_load): Properly compute the number of loads needed
4169 for permuted strided SLP loads and do not spuriously assign
4170 to SLP_TREE_VEC_STMTS.
4172 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
4174 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
4175 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
4176 (MD_EXEC_PREFIX): Remove.
4177 (MD_STARTFILE_PREFIX) Removee.
4178 (FILE_NAME_ABSOLUTE_P): Remove.
4179 (CPP_SPEC): Do not read macros from sys/version.h.
4180 (LINK_COMMAND_SPEC): Remove.
4181 (LOCAL_INCLUDE_DIR): Remove.
4182 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
4183 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
4184 (POST_LINK_SPEC): Define to invoke stubify after linker
4185 (LIBSTDCXX): Remove define
4186 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
4187 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
4188 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
4189 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
4190 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
4191 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
4192 (i386_djgpp_asm_named_section): Add propotype of new procedure
4194 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
4195 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
4196 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
4197 in config/i386/djgpp.h).
4198 (STANDARD_STARTFILE_PREFIX_2): Define identical to
4199 STANDARD_STARTFILE_PREFIX_1.
4200 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
4201 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
4202 installation errors.
4203 (MAX_OFILE_ALIGNMENT): Define to 128.
4204 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
4206 * config/i386/djgpp.c: New file. Add implementation of
4207 i386_djgpp_asm_named_section.
4209 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
4211 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
4212 Add rule for building djgpp.o.
4214 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4216 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
4217 (rtx_is_swappable_p): Reductions are swappable.
4218 (insn_is_swappable_p): V2DF reductions are swappable.
4220 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
4222 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
4223 reloads for other unsupported memory operands.
4225 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4226 Jim Wilson <jim.wilson@linaro.org>
4229 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
4230 copy_to_mode_reg instead of force_reg.
4232 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
4235 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
4236 TARGET_80387 is true.
4238 2016-01-11 Jakub Jelinek <jakub@redhat.com>
4241 * lra-eliminations.c (move_plus_up): Only move plus up
4242 if subreg of the constant can be simplified into constant
4243 and use the simplified subreg of the constant instead of
4244 the original constant.
4246 * fold-const.c (fold_convertible_p): Don't return true
4247 for conversion of VECTOR_TYPE to same sized integral type.
4248 (fold_convert_loc): Fix up formatting. Fold conversion of
4249 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
4250 instead of NOP_EXPR.
4252 PR tree-optimization/69214
4253 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
4254 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4257 PR tree-optimization/69207
4258 * tree-vect-slp.c (vect_get_constant_vectors): For
4259 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
4260 fold_convertible_p to vector_type's element type, and always
4261 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
4263 2016-01-11 Richard Biener <rguenther@suse.de>
4265 PR tree-optimization/69173
4266 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
4267 fixup the cycle if all stmts are in a pattern.
4269 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
4272 * alias.c (base_alias_check): Move check for addresses with
4273 alignment ANDs before the call for compare_base_decls.
4274 (memrefs_conflict_p): Return -1 for different decls
4275 that went through alignment adjustments.
4277 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4279 PR rtl-optimization/68796
4280 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
4281 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
4282 and QImode comparisons against zero with CC_NZmode.
4283 * config/aarch64/iterators.md (short_mask): New mode_attr.
4285 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
4287 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
4288 (<avx512>_store<mode>_mask): Likewise.
4290 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
4291 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4293 PR rtl-optimization/68841
4294 * ifcvt.c (struct noce_if_info): Add orig_x field.
4295 (bbs_ok_for_cmove_arith): Add to_rename parameter.
4296 Don't record conflicts on to_rename if it's present.
4297 Allow memory destinations in sets.
4298 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
4299 blocks, passing orig_x to the checks.
4300 (noce_process_if_block): Set if_info->orig_x appropriately.
4302 2016-01-11 Tom de Vries <tom@codesourcery.com>
4304 PR tree-optimization/69069
4305 * tree-parloops.c (create_parallel_loop): Add missing phi args.
4307 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
4309 PR rtl-optimization/68920
4310 * config/i386/i386.c (ix86_option_override_internal): Restrict number
4311 of conditional moves for RTL if-conversion to 1 for
4312 TARGET_ONE_IF_CONV_INSN.
4313 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
4314 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
4315 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
4316 parameter to restirct number of conditional moves for
4318 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
4319 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
4322 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
4325 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
4326 onepart vars. Fix typo in comment. Fix reversed condition in
4328 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
4331 * var-tracking.c (dump_onepart_variable_differences): New.
4332 (dataflow_set_different): If a detailed dump is requested,
4333 delay early returns and dump differences between onepart
4334 variables present before and after, and added variables.
4336 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
4339 * expr.c (expand_expr_real_1): For boolean vector constants
4340 with a scalar mode use const_scalar_mask_from_tree.
4341 (const_scalar_mask_from_tree): New.
4342 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
4343 assigned to a mask type to handle constants.
4345 2016-01-11 Martin Jambor <mjambor@suse.cz>
4348 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
4349 useless parameters if we cannot change function signature.
4351 2016-01-11 Martin Jambor <mjambor@suse.cz>
4354 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
4357 2016-01-11 Tom de Vries <tom@codesourcery.com>
4359 PR tree-optimization/69109
4360 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
4363 2016-01-11 Tom de Vries <tom@codesourcery.com>
4365 PR tree-optimization/69108
4366 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
4367 res is not used in a phi.
4369 2016-01-11 Yury Gribov <y.gribov@samsung.com>
4372 * common.opt (frandom-seed): Fix parameter name.
4373 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
4375 2016-01-11 Tom de Vries <tom@codesourcery.com>
4377 PR tree-optimization/69058
4378 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
4381 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
4383 * config/arc/arc.opt (mdiv-rem): Add period to the end.
4384 (mcode-density): Likewise.
4386 2016-01-10 Tom de Vries <tom@codesourcery.com>
4388 PR tree-optimization/69062
4389 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
4390 (parallelize_loops): Don't paralelize loop that has phi with address
4393 2016-01-10 Tom de Vries <tom@codesourcery.com>
4395 PR tree-optimization/69039
4396 * tree-parloops.c (try_create_reduction_list): Only allow single exit
4399 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
4402 * match.pd: Require target has function_c99_misc before doing
4403 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
4405 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
4407 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
4409 * configure: Regenerate.
4411 2016-01-09 Jakub Jelinek <jakub@redhat.com>
4414 PR tree-optimization/69097
4415 * fold-const.h (expr_not_equal_to): New prototype.
4416 * fold-const.c: Include stringpool.h and tree-ssanames.h.
4417 (expr_not_equal_to): New function.
4418 * match.pd (X % -Y is the same as X % Y): Don't optimize
4419 unless X is known not to be equal to minimum or Y is known
4420 not to be equal to -1.
4421 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
4422 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
4423 (simplify_stmt_using_ranges): Adjust caller.
4424 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
4425 substitute_and_fold.
4427 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
4429 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
4432 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4434 PR tree-optimization/69167
4435 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
4436 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
4438 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
4440 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
4441 Richard Biener <rguenther@suse.de>
4443 PR tree-optimization/68707
4444 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
4445 instances that can be handled via vect_load_lanes.
4447 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
4449 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
4450 if we can't determine address equivalence.
4451 * alias.c (compare_base_decl): Update for changed return value of
4452 symtab_node::equal_address_to.
4454 2016-01-08 Jason Merrill <jason@redhat.com>
4458 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
4459 * expr.c (store_field): Not here.
4460 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
4461 call with TREE_ADDRESSABLE type.
4462 * tree-cfg.c (verify_gimple_call): Adjust.
4464 2016-01-08 Olivier Hainque <hainque@adacore.com>
4466 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
4469 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
4471 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
4472 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
4473 (reduc_smin_v2sf): Rename to...
4474 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
4475 (reduc_splus_v2sf): Rename to...
4476 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
4478 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4480 PR tree-optimization/69162
4481 * gimplify.c (gimplify_va_arg_expr): Encode original type of
4482 valist argument in another argument.
4483 (gimplify_modify_expr): Adjust for the above change. Cleanup.
4484 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
4485 to determine the va_list type, build a MEM_REF instead of
4486 build_fold_indirect_ref.
4488 PR tree-optimization/69172
4489 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
4492 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
4494 PR tree-optimization/67781
4495 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
4496 and cmpnop in two steps: first the ones not accessed in original
4497 gimple expression in a endian independent way and then the ones not
4498 accessed in the final result in an endian-specific way.
4500 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4502 PR tree-optimization/69083
4503 * tree-vect-slp.c (vect_get_constant_vectors): For
4504 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
4505 element type. If op is fold_convertible_p to vector_type's element
4506 type, use NOP_EXPR instead of VCE.
4508 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
4510 PR rtl-optimization/67778
4511 PR rtl-optimization/68634
4512 PR rtl-optimization/68909
4513 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
4514 block from the stack until done with it. Remove a superfluous
4515 bitmap set. Remove a superfluous bitmap test.
4517 2016-01-07 Martin Sebor <msebor@redhat.com>
4520 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
4521 constraint on the type of arguments.
4523 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
4525 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
4526 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
4527 unaligned_access on the gcc_options set.
4528 * config/arm/arm.c (arm_option_override_internal): Use
4529 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
4531 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
4534 * config/i386/i386.c (ix86_frame_pointer_required): Enable
4535 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
4537 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
4540 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
4543 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
4544 depending on frame_pointer_needed before remaining integer and SSE
4545 registers are saved.
4547 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
4550 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
4552 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4555 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
4556 Use the "xBm" constraint.
4557 (float<sseintvecmodelower><mode>2<mask_name><round_name):
4559 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
4560 (sse_cvtsi2ssq<round_name>): Likewise.
4561 (sse_cvtss2si<round_name>): Likewise.
4562 (sse_cvtss2siq<round_name>): Likewise.
4563 (sse2_cvtsi2sdq<round_name>): Likewise.
4564 (sse2_cvtsd2si<round_name>): Likewise.
4565 (sse2_cvtsd2siq<round_name>): Likewise.
4566 * config/i386/subst.md (round_nimm_scalar_predicate): New
4569 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
4572 * varasm.c (make_decl_rtl): Mark invalid register vars as
4575 PR rtl-optimization/66206
4576 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
4577 All callers changed.
4579 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4581 PR tree-optimization/69141
4582 * tree-ssa-pre.c: Include langhooks.h.
4583 (eliminate_dom_walker::before_dom_children): Use
4584 lang_hooks.decl_printable_name instead of
4585 cgraph_node::get ()->name ().
4588 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
4589 it and DECL_ALIGN too.
4591 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
4593 * config/mips/mips-ftypes.def: Sort to lexicographical order.
4595 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
4598 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
4599 depending on frame_pointer_needed before remaining integer and SSE
4600 registers are saved.
4602 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4604 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
4605 mode iterator with VSX_M2.
4606 (*p9_vecstore_<mode>): Likewise.
4607 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
4608 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
4609 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
4610 (define_split for VSX_LE128 stores): Likewise.
4611 (define_peephole2 for TImode LE swaps): Likewise.
4612 (define_split for VSX_LE128 post-reload stores): Likewise.
4614 2016-01-06 Marek Polacek <polacek@redhat.com>
4617 * convert.c (convert_to_integer_1): Adjust call to
4618 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
4619 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
4620 EXPR instead of ARG.
4621 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
4623 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4626 * doc/extend.texi (RL78 Variable Attributes): New section.
4628 2016-01-05 Marek Polacek <polacek@redhat.com>
4631 * builtins.c (get_memmodel): Use expansion point location rather than
4632 the input location. Call warning_at rather than warning.
4633 (expand_builtin_atomic_compare_exchange): Likewise.
4634 (expand_builtin_atomic_load): Likewise.
4635 (expand_builtin_atomic_store): Likewise.
4636 (expand_builtin_atomic_clear): Likewise.
4638 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
4641 * config/i386/i386.c (ix86_expand_vector_logical_operator):
4642 Replace nonimmediate_operand with vector_operand.
4643 * config/i386/predicates.md (vector_operand): New predicate.
4644 (general_vector_operand): Replace nonimmediate_operand with
4646 * config/i386/sse.md: Replace nonimmediate_operand with
4647 vector_operand and m constraint with Bm constraint on SSE
4648 patterns with 16-byte memory operand.
4649 * config/i386/subst.md (round_nimm_predicate): Replace
4650 nonimmediate_operand with vector_operand.
4651 (round_saeonly_nimm_predicate): Likewise.
4652 (round_saeonly_nimm_scalar_predicate): New.
4654 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
4657 * config/i386/constraints.md (Bm): New constraint.
4658 * config/i386/predicates.md (vector_memory_operand): New
4660 * config/i386/sse.md: Replace xm with xBm in plusminus and
4663 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4666 * doc/extend.texi (V850 Function Attributes): New section.
4667 (V850 Variable Attributes): New section.
4669 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4672 * doc/extend.texi (MicroBlaze Function Attributes): Document
4673 interrupt_handler and fast_interrupt attributes.
4675 2016-01-05 Sergei Trofimovich <siarheit@google.com>
4678 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
4679 for local symbolic operands.
4680 * config/ia64/predicates.md (local_symbolic_operand64): New
4683 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4685 PR rtl-optimization/68651
4686 * combine.c (combine_simplify_rtx): Canonicalize x + x into
4689 2016-01-05 Nathan Sidwell <nathan@acm.org>
4691 * alias.c (compare_base_decls): Use symtab_node::get.
4693 2016-01-05 Nick Clifton <nickc@redhat.com>
4696 * ira-costs.c (copy_cost): Initialise the t_icode field of the
4697 secondary_reload_info structure.
4700 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
4701 decls if weak support is available.
4703 2016-01-04 Martin Sebor <msebor@redhat.com>
4705 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
4707 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
4709 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4710 OPTION_MASK_P9_DFORM.
4712 * config/rs6000/constraints.md (wo constraint): New constraint for
4715 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
4717 (rs6000_init_hard_regno_mode_ok): Likewise.
4719 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
4722 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
4723 expanders not to have constraints. Add support for ISA 3.0 xxperm
4724 instruction. Add support for fusing xxlor with xxperm.
4725 (altivec_vperm_<mode>_internal): Likewise.
4726 (altivec_vperm_v8hiv16qi): Likewise.
4727 (altivec_vperm_<mode>v16q): Likewise.
4728 (altivec_vperm_<mode>_uns): Likewise.
4729 (vperm_v8hiv4si): Likewise.
4730 (vperm_v16qiv8hi): Likewise.
4732 * doc/md.texi (RS/6000 constraints): Document wo constraint.
4734 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4736 Update copyright years.
4738 * gcc.c (process_command): Update copyright notice dates.
4739 * gcov-dump.c (print_version): Ditto.
4740 * gcov.c (print_version): Ditto.
4741 * gcov-tool.c (print_version): Ditto.
4742 * gengtype.c (create_file): Ditto.
4743 * doc/cpp.texi: Bump @copying's copyright year.
4744 * doc/cppinternals.texi: Ditto.
4745 * doc/gcc.texi: Ditto.
4746 * doc/gccint.texi: Ditto.
4747 * doc/gcov.texi: Ditto.
4748 * doc/install.texi: Ditto.
4749 * doc/invoke.texi: Ditto.
4751 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4753 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
4754 modes larger than TImode as TImode if NEON is not enabled.
4756 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4759 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
4760 mode for %f0-%f31 only if TARGET_FPU.
4762 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4765 * config/sparc/sparc.c (scan_record_type): Take into account subfields
4766 to compute the PACKED_P predicate.
4767 (function_arg_record_value): Minor tweaks.
4769 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4771 * doc/install.texi (--with-multilib-list): Describe the meaning of the
4772 option for arm*-*-* targets.
4774 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
4776 * doc/extend.texi (Common Function Attributes): Move docs for
4777 MSP430-specific attributes to....
4778 (MSP430 Function Attributes): ...here. Delete the redundant
4779 entries and copy-edit the remaining text.
4780 (MSP430 Variable Attributes): Use uniform format for index
4781 entries and add a cross-reference to the corresponding function
4784 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
4786 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
4788 (x86 Options): Likewise.
4790 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
4794 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
4795 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
4796 to corresponding attribute.
4798 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
4800 * doc/extend.texi (Common Function Attributes) <noplt>: Move
4801 to correct alphabetization of table. Copy-edit and correct
4803 <stack_protect>: Likewise.
4804 <target_clones>: Likewise.
4806 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
4807 Correct punctuation.
4808 (Code Gen Options) <-fno-plt>: Copy-edit.
4810 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4813 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
4814 SI values. Explicitly convert SI to DI and vice-versa.
4816 2016-01-01 Jakub Jelinek <jakub@redhat.com>
4818 PR tree-optimization/69070
4819 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
4820 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
4823 * ubsan.c (ubsan_instrument_float_cast): Call
4824 initialize_sanitizer_builtins.
4827 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
4829 Copyright (C) 2016 Free Software Foundation, Inc.
4831 Copying and distribution of this file, with or without modification,
4832 are permitted in any medium without royalty provided the copyright
4833 notice and this notice are preserved.