1 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
5 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
6 Handle negative shift counts.
7 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
8 force_reg on the shift constant.
9 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
10 (lshrsi3_d): Handle negative shift counts.
12 2016-02-22 Richard Biener <rguenther@suse.de>
13 Tom de Vries <tom@codesourcery.com>
15 * graph.c: Include dumpfile.h.
16 (print_graph_cfg): Split into three overloads.
17 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
19 2016-02-22 Tom de Vries <tom@codesourcery.com>
21 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
24 2016-02-22 Richard Biener <rguenther@suse.de>
27 * ipa-inline-transform.c (inline_call): When not updating
28 overall summaries adjust self size by the growth estimate.
29 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
30 hash-set, do not update overall summaries here. Renamed from ...
31 (inline_to_all_callers): ... this which is now wrapping the
32 above and performing delayed overall summary update.
33 (early_inline_small_functions): Delay updating of the overall
36 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
38 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
41 2016-02-19 Jakub Jelinek <jakub@redhat.com>
44 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
45 :%* in %:gt() argument.
46 (greater_than_spec_func): Adjust for expecting only numbers,
47 if there are more than two numbers, compare the last two.
49 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
51 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
52 -Wnarrowing with -std.
54 2016-02-19 Jakub Jelinek <jakub@redhat.com>
57 * expr.c (store_field): Don't use bit-field path if exp is
58 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
59 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
60 and the assignment can be performed by bitwise copy. Formatting
64 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
65 call copy_reg_eh_region_note_forward on before and/or after sequences
66 and remove note from insn if it no longer can throw.
69 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
72 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
74 * config/s390/vector.md: Add missing commutative operand markers
75 to the patterns which qualify for one.
76 * config/s390/vx-builtins.md: Likewise.
78 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
80 * config/s390/vector.md (VI, VI_QHS): Add single element vector
81 types to mode iterators.
82 (vec_double): ... and mode attribute.
83 * config/s390/vx-builtins.md (non_vec_int): Likewise.
85 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
87 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
88 Change the predicate of op2 from nonimmediate to general and let
89 reload fix it if necessary.
91 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
93 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
95 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
97 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
100 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
102 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
103 * config/s390/s390.c (s390_expand_vec_movstr): New function.
104 * config/s390/s390.md ("movstr<P:mode>"): Call
105 s390_expand_vec_movstr.
107 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
109 * config/s390/s390.md: Add missing output modifier for operand 1
110 to print it as address properly.
112 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
114 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
115 * config/s390/2964.md: New file.
116 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
117 of insn grouping attributes depending on the CPU level.
118 (s390_get_unit_mask): New function.
119 (s390_sched_score): Remove the OOO from the scheduling macros.
120 Add loop to calculate a score for the instruction mix.
121 (s390_sched_reorder): Likewise plus improve debug output.
122 (s390_sched_variable_issue): Rename macros as above. Calculate
123 the unit distances after actually scheduling an insn. Improve
125 (s390_sched_init): Clear last_scheduled_unit_distance array.
126 * config/s390/s390.md: Include 2964.md.
128 2016-02-18 Jakub Jelinek <jakub@redhat.com>
131 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
132 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
133 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
134 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
135 *avx512f_<code>v8div16qi2_mask_1): New insns.
137 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
140 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
143 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
144 earlyclobber from target. Use wF constraint for fused memory
146 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
148 2016-02-18 Jakub Jelinek <jakub@redhat.com>
149 Martin Liska <mliska@suse.cz>
152 * cfgexpand.c (asan_sanitize_stack_p): New function.
153 (partition_stack_vars): Use the function.
154 (expand_stack_vars): Likewise.
155 (defer_stack_allocation): Likewise.
156 (expand_used_vars): Likewise.
158 2016-02-18 Richard Biener <rguenther@suse.de>
161 * fold-const.c (operand_equal_p): Properly compare offsets for
162 IMAGPART_EXPR and ARRAY_REF.
164 2016-02-18 Nick Clifton <nickc@redhat.com>
168 * config/arm/arm.c (arm_option_override_internal): Disable
169 interworking if the target does not support thumb instructions.
170 (arm_reload_in_hi): Handle the case where a register to register
171 move needs reloading because there is no simple pattern to handle
173 (arm_reload_out_hi): Likewise.
175 2016-02-18 Richard Biener <rguenther@suse.de>
178 * match.pd: Don't use fold_binary or fold_unary for folding
181 2016-02-17 Jakub Jelinek <jakub@redhat.com>
184 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
185 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
186 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
187 warn on gimple_no_warning_p statements.
189 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
191 * doc/extend.texi (C++ Attributes): Correct description of
192 warn_unused type attribute.
194 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
196 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
199 2016-02-17 Richard Biener <rguenther@suse.de>
201 PR rtl-optimization/69609
202 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
203 (find_traces_1_round): When ending a trace update cached priority
205 (bb_to_key): Use cached priority when available.
206 (copy_bb): Initialize cached priority.
207 (reorder_basic_blocks_software_trace_cache): Likewise.
209 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
212 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
214 (aarch64_comparison_operator): Break overly long line into two.
215 (aarch64_comparison_operation): Likewise.
216 * config/aarch64/aarch64.md (cstorecc4): Use
217 aarch64_comparison_operator_mode instead of
218 aarch64_comparison_operator.
219 (cstore<mode>4): Likewise.
220 (aarch64_cstore<mode>): Likewise.
221 (*cstoresi_insn_uxtw): Likewise.
222 (cstore<mode>_neg): Likewise.
223 (*cstoresi_neg_uxtw): Likewise.
225 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
228 * config/arm/predicates.md (arm_comparison_operator_mode):
230 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
231 instead of arm_comparison_operator.
232 (*mov_negscc): Likewise.
233 (*mov_notscc): Likewise.
234 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
235 (*thumb2_mov_negscc): Likewise.
236 (*thumb2_mov_negscc_strict_it): Likewise.
237 (*thumb2_mov_notscc): Likewise.
238 (*thumb2_mov_notscc_strict_it): Likewise.
240 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
242 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
245 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
247 * config/visium/visium.c (machine_libfunc_index): New enum.
248 (machine_libfuncs): New structure.
249 (visium_libfuncs): New static variable.
250 (TARGET_INIT_LIBFUNCS): Define to...
251 (visium_init_libfuncs): ...this. New function.
252 (expand_block_move_4): Use the appropriate libfunc.
253 (expand_block_move_2): Likewise.
254 (expand_block_move_1): Likewise.
255 (expand_block_set_4): Likewise.
256 (expand_block_set_2): Likewise.
257 (expand_block_set_1): Likewise.
258 (visium_trampoline_init): Likewise.
260 2016-02-17 Nick Clifton <nickc@redhat.com>
262 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
263 TI's devices.csv file as of March 2016.
265 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
268 * opts-global.c (handle_common_deferred_options): Introduce and
269 initialize two global variables to remember command-line options
270 specifying a stack-limiting register.
271 * opts.h: Add extern declarations of the two new global variables.
272 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
273 variable based on the values of the two new global variables.
275 2016-02-16 Jakub Jelinek <jakub@redhat.com>
278 * common.opt (Wnonnull-compare): New warning.
279 * doc/invoke.texi (-Wnonnull): Remove text about comparison
280 of arguments against NULL.
281 (-Wnonnull-compare): Document.
282 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
283 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
284 * passes.def (pass_warn_nonnull_compare): Add.
285 * gimple-ssa-nonnull-compare.c: New file.
287 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
289 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
290 AARCH64_EXTRA_TUNE_RECIP_SQRT.
292 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
294 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
295 reciprocal sqrt for -mlow-precision-recip-sqrt.
297 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
298 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
300 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
301 always use lane loads to construct non-constant vectors.
303 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
305 * config/aarch64/aarch64.md
306 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
307 constraints for operand 3.
308 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
310 2016-02-16 Jakub Jelinek <jakub@redhat.com>
311 Richard Biener <rguenther@suse.de>
313 PR tree-optimization/69820
314 * tree-vect-patterns.c (type_conversion_p): Return false if
315 *orig_type is unsigned single precision or boolean.
316 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
319 2016-02-16 Jakub Jelinek <jakub@redhat.com>
321 PR rtl-optimization/69764
322 PR rtl-optimization/69771
323 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
324 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
326 2016-02-16 Richard Biener <rguenther@suse.de>
328 PR tree-optimization/69776
329 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
331 (indirect_refs_may_alias_p): Likewise.
332 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
333 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
335 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
336 (optimize_stmt): For redundant store discovery do not allow tbaa.
338 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
340 PR tree-optimization/69714
341 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
342 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
344 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
346 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
347 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
348 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
349 * config/arc/arc.c (arc_init): Check FPU options.
350 (get_arc_condition_code): Handle new CC_FPU* modes.
351 (arc_select_cc_mode): Likewise.
352 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
353 register pair only. Allow access for ARCv2 accumulator.
354 (gen_compare_reg): Whenever we have FPU support use FPU compare
356 (arc_reorg): Don't generate brcc insns when FPU compare
357 instructions are involved.
358 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
359 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
360 floating point emulation.
361 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
362 (REVERSE_CONDITION): Add new CC_FPU* modes.
363 (TARGET_FP_SP_BASE): Define.
364 (TARGET_FP_DP_BASE): Likewise.
365 (TARGET_FP_SP_FUSED): Likewise.
366 (TARGET_FP_DP_FUSED): Likewise.
367 (TARGET_FP_SP_CONV): Likewise.
368 (TARGET_FP_DP_CONV): Likewise.
369 (TARGET_FP_SP_SQRT): Likewise.
370 (TARGET_FP_DP_SQRT): Likewise.
371 (TARGET_FP_DP_AX): Likewise.
372 * config/arc/arc.md (ARCV2_ACC): New constant.
373 (type): New fpu type attribute.
374 (SDF): Conditional iterator.
375 (cstore<mode>, cbranch<mode>): Change expand condition.
376 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
377 handles FPU/FPX cases as well.
378 * config/arc/arc.opt (mfpu): New option.
379 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
381 (adddf3, muldf3, subdf3): Removed.
382 * config/arc/predicates.md (proper_comparison_operator): Recognize
384 * config/arc/fpu.md: New file.
385 * doc/invoke.texi (ARC Options): Document mfpu option.
387 2016-02-16 Richard Biener <rguenther@suse.de>
389 PR rtl-optimization/69291
390 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
391 noce_operand_ok check.
393 2016-02-16 Tom de Vries <tom@codesourcery.com>
396 * omp-low.c (simd_clone_create): Remove call to
397 symtab->call_cgraph_insertion_hooks.
399 2016-02-16 Jakub Jelinek <jakub@redhat.com>
401 PR tree-optimization/69802
402 * tree-ssa-reassoc.c (update_range_test): If op is
403 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
404 op == 1 test of precision 1 integral op, otherwise handle
405 that case as op itself. Fix up formatting.
406 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
409 2016-02-16 Richard Biener <rguenther@suse.de>
411 PR tree-optimization/69586
412 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
413 types for conversion sources.
415 2016-02-16 Richard Biener <rguenther@suse.de>
418 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
421 2016-02-16 Alan Modra <amodra@gmail.com>
424 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
425 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
426 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
428 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
429 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
430 (p8_fmrgow_<mode>): Likewise.
431 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
433 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
434 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
435 to use movdi_internal64. Remove op0_di.
436 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
438 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
440 Add support for the FCCMP insn types
442 * config/aarch64/aarch64.md (fccmp): Change insn type.
444 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
445 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
446 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
447 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
448 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
449 * config/arm/types.md (fccmps): Add new insn type.
452 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
454 * alias.c (get_alias_set): Fix a typo in comment.
456 2016-02-15 Richard Biener <rguenther@suse.de>
458 PR tree-optimization/69595
459 * match.pd: Complete range test simplification to true.
461 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
463 PR rtl-optimization/69648
464 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
465 pic_offset_table_rtx.
467 PR rtl-optimization/69752
468 * ira.c (update_equiv_regs): When looking for more than a single SET,
469 also take other side effects into account.
471 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
473 * config/s390/s390.c (s390_function_profiler): Add a new sequence
474 for z900+ CPUs in 31-bit mode.
476 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
478 * common/config/s390/s390-common.c (s390_supports_split_stack):
480 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
481 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
482 * config/s390/s390.c (struct machine_function): New field
483 split_stack_varargs_pointer.
484 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
485 in s390_emit_prologue.
486 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
488 (morestack_ref): New global.
489 (SPLIT_STACK_AVAILABLE): New macro.
490 (s390_expand_split_stack_prologue): New function.
491 (s390_live_on_entry): New function.
492 (s390_va_start): Use split-stack vararg pointer if appropriate.
493 (s390_asm_file_end): Emit the split-stack note sections.
494 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
495 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
496 (UNSPECV_SPLIT_STACK_CALL): New unspec.
497 (UNSPECV_SPLIT_STACK_DATA): New unspec.
498 (split_stack_prologue): New expand.
499 (split_stack_space_check): New expand.
500 (split_stack_data): New insn.
501 (split_stack_call): New expand.
502 (split_stack_call_*): New insn.
503 (split_stack_cond_call): New expand.
504 (split_stack_cond_call_*): New insn.
506 2016-02-15 Richard Biener <rguenther@suse.de>
508 PR tree-optimization/69783
509 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
510 Add trivially correct cases.
512 2016-02-15 Tom de Vries <tom@codesourcery.com>
515 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
517 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
519 2016-02-15 Richard Biener <rguenther@suse.de>
521 PR tree-optimization/69776
522 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
523 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
524 indicate whether we can use TBAA to disambiguate against stores.
525 Use alias-set zero if not.
526 (visit_reference_op_store): Do not use TBAA when looking up
528 * tree-ssa-pre.c (compute_avail): Use TBAA here.
529 (eliminate_dom_walker::before_dom_children): But not when looking
532 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
534 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
536 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
538 * config/i386/znver1.md
539 (znver1_pop, znver1_pop_mem,
540 znver1_load_imov_double_store,
541 znver1_load_imov_direct_store,
542 znver1_load_imov_direct_load,
543 znver1_load_imov_double_load): Add new.
544 (znver1_insn, znver1_insn_load): Add icmov type.
546 znver1_sseavx_fma_load,
548 znver1_avx256_fma_load): Fix pipe usage.
550 2016-02-14 Alan Modra <amodra@gmail.com>
553 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
554 with an invalid hard reg, reload just the reg not the entire
555 pre/post-inc/dec address expression.
557 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
560 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
561 fixed R1_REG scratch reg.
562 (sibcall_value_pcrel_fdpic): Likewise.
564 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
568 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
570 2016-02-12 Walter Lee <walt@tilera.com>
572 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
573 * config/tilegx/t-tilegx: Likewise.
575 2016-02-12 David Malcolm <dmalcolm@redhat.com>
578 * diagnostic-show-locus.c (struct line_span): New struct.
579 (layout::get_first_line): Delete.
580 (layout::get_last_line): Delete.
581 (layout::get_num_line_spans): New member function.
582 (layout::get_line_span): Likewise.
583 (layout::print_heading_for_line_span_index_p): Likewise.
584 (layout::get_expanded_location): Likewise.
585 (layout::calculate_line_spans): Likewise.
586 (layout::m_first_line): Delete.
587 (layout::m_last_line): Delete.
588 (layout::m_line_spans): New field.
589 (layout::layout): Update comment. Replace m_first_line and
590 m_last_line with m_line_spans, replacing their initialization
591 with a call to calculate_line_spans.
592 (diagnostic_show_locus): When printing source lines and
593 annotations, rather than looping over a single span
594 of lines, instead loop over each line_span within
595 the layout, with an inner loop over the lines within them.
596 Call the context's start_span callback when changing line spans.
597 * diagnostic.c (diagnostic_initialize): Initialize start_span.
598 (diagnostic_build_prefix): Break out the building of the location
599 part of the string into...
600 (diagnostic_get_location_text): ...this new function, rewriting
601 it from nested ternary expressions to a sequence of "if"
603 (default_diagnostic_start_span_fn): New function.
604 * diagnostic.h (diagnostic_start_span_fn): New typedef.
605 (diagnostic_context::start_span): New field.
606 (default_diagnostic_start_span_fn): New prototype.
608 2016-02-12 David Malcolm <dmalcolm@redhat.com>
611 * gcc.c (driver::finalize): Fix cleanup of "specs".
613 2016-02-12 David Malcolm <dmalcolm@redhat.com>
617 * gcc.c (driver::driver): Initialize m_option_suggestions.
618 (driver::~driver): Clean up m_option_suggestions.
619 (suggest_option): Convert to...
620 (driver::suggest_option): ...this, and split out into
621 driver::build_option_suggestions and find_closest_string.
622 (driver::build_option_suggestions): New function, from
623 first half of suggest_option. Special-case
624 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
625 the sanitizer_opts array. For options of enum types, add the
626 various enum values to the candidate strings.
627 (driver::handle_unrecognized_options): Remove "const".
628 * gcc.h (driver::handle_unrecognized_options): Likewise.
629 (driver::build_option_suggestions): New decl.
630 (driver::suggest_option): New decl.
631 (driver::m_option_suggestions): New field.
632 * opts-common.c (add_misspelling_candidates): New function.
633 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
635 * opts.h (sanitizer_opts): New array decl.
636 (add_misspelling_candidates): New function decl.
637 * spellcheck.c (find_closest_string): New function.
638 * spellcheck.h (find_closest_string): New function decl.
640 2016-02-12 Jakub Jelinek <jakub@redhat.com>
642 PR rtl-optimization/69764
643 PR rtl-optimization/69771
644 * optabs.c (expand_binop_directly): For shift_optab_p, force
645 convert_modes with VOIDmode if xop1 has VOIDmode.
647 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
650 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
651 to correctly determine instrumentation thunks.
653 2016-02-12 Jakub Jelinek <jakub@redhat.com>
656 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
657 type by reference, force lhs on the call.
660 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
661 Compute retval and retbnd early in all cases if split_part_return_p
662 and return_bb is not EXIT. Remove all clobber stmts and reset
663 all debug stmts that refer to SSA_NAMEs defined in split part,
664 except if it is retval, in that case replace the old retval with the
665 lhs of the call to the split part.
667 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
670 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
673 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
674 whose result is used in PHI.
675 (maybe_optimize_range_tests): Likewise.
676 (final_range_test_p): Likweise.
678 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
681 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
682 whose result is used in PHI.
683 (maybe_optimize_range_tests): Likewise.
684 (final_range_test_p): Likweise.
686 2016-02-12 Jakub Jelinek <jakub@redhat.com>
688 * cgraph.c: Spelling fixes - behaviour -> behavior and
689 neighbour -> neighbor.
690 * target.def: Likewise.
691 * sel-sched.c: Likewise.
692 * config/mips/mips.c: Likewise.
693 * config/arc/arc.md: Likewise.
694 * config/arm/cortex-a57.md: Likewise.
695 * config/arm/arm.c: Likewise.
696 * config/arm/neon.md: Likewise.
697 * config/arm/arm-c.c: Likewise.
698 * config/vms/vms-c.c: Likewise.
699 * config/s390/s390.c: Likewise.
700 * config/i386/znver1.md: Likewise.
701 * config/i386/i386.c: Likewise.
702 * config/ia64/hpux-unix2003.h: Likewise.
703 * config/msp430/msp430.md: Likewise.
704 * config/rx/rx.c: Likewise.
705 * config/rx/rx.md: Likewise.
706 * config/aarch64/aarch64-simd.md: Likewise.
707 * config/aarch64/aarch64.c: Likewise.
708 * config/nvptx/nvptx.c: Likewise.
709 * config/bfin/bfin.c: Likewise.
710 * config/cris/cris.opt: Likewise.
711 * config/rs6000/rs6000.c: Likewise.
712 * target.h: Likewise.
713 * spellcheck.c: Likewise.
714 * ira-build.c: Likewise.
715 * tree-inline.c: Likewise.
716 * builtins.c: Likewise.
717 * lra-constraints.c: Likewise.
718 * explow.c: Likewise.
720 * targhooks.c: Likewise.
721 * tree-vect-data-refs.c: Likewise.
723 * doc/tm.texi: Likewise.
724 * doc/extend.texi: Likewise.
725 * doc/install.texi: Likewise.
726 * doc/md.texi: Likewise.
727 * tree-ssa-tail-merge.c: Likewise.
728 * sched-int.h: Likewise.
729 * match.pd: Likewise.
730 * sched-ebb.c: Likewise.
731 * target.def (omit_struct_return_reg): Likewise.
732 * gimple-ssa-isolate-paths.c: Likewise.
733 (find_implicit_erroneous_behaviour): Renamed to...
734 (find_implicit_erroneous_behavior): ... this.
735 (find_explicit_erroneous_behaviour): Renamed to...
736 (find_explicit_erroneous_behavior): ... this.
737 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
739 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
741 PR rtl-optimization/64682
742 PR rtl-optimization/69567
743 PR rtl-optimization/69737
744 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
745 in I2 as well, just lose it.
747 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
749 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
751 (aarch64_last_printed_tune_string): Likewise.
752 (aarch64_declare_function_name): Only output .arch assembler
753 directive if it will be different from the previously output
754 directive. Same for .tune comment but only if -dA is set.
755 (aarch64_start_file): New function.
756 (TARGET_ASM_FILE_START): Define.
758 2016-02-11 David Malcolm <dmalcolm@redhat.com>
761 * Makefile.in (PLUGIN_HEADERS): Add params.list.
763 2016-02-11 Jakub Jelinek <jakub@redhat.com>
766 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
767 -Wmaybe-uninitialized warning.
769 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
772 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
774 2016-02-11 Richard Biener <rguenther@suse.de>
776 PR rtl-optimization/69291
777 * ifcvt.c (noce_try_store_flag_constants): Do not allow
778 subexpressions affected by changing the result.
780 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
783 * lra-constraints.c (curr_insn_transform): Find in/out operands
784 for secondary memory moves. Update dups.
786 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
788 PR tree-optimization/69652
789 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
790 to nested loop, did source re-formatting, skip debug statements,
791 add check on statement with volatile operand, remove dead scalar
794 2016-02-10 Jakub Jelinek <jakub@redhat.com>
795 Patrick Palka <ppalka@gcc.gnu.org>
799 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
800 calls if the return type is TREE_ADDRESSABLE.
801 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
802 * ipa-split.c (split_function): Fix doubled "we" in comment.
803 Use void return type for the split part even if
804 !split_point->split_part_set_retval.
806 2016-02-10 Bin Cheng <bin.cheng@arm.com>
808 PR tree-optimization/68021
809 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
810 when computing the value of biv cand by itself.
812 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
814 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
815 (cortexa57_tunings): Likewise.
816 (cortexa72_tunings): Likewise.
817 (arch_macro_fusion_pair_p): Add support for AES fusion.
818 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
819 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
820 Allow virtual registers before reload so early scheduling works.
821 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
822 correct latency and pipeline.
823 (cortex_a57_crypto_complex): Likewise.
824 (cortex_a57_crypto_xor): Likewise.
825 (define_bypass): Add AES bypass.
827 2016-02-10 Richard Biener <rguenther@suse.de>
829 PR tree-optimization/69726
830 * passes.def: Add DCE pass before late uninit.
831 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
832 really fixup if-conversions job.
834 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
836 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
837 (arm_cortex_a57_tune): Likewise.
838 (aarch_macro_fusion_pair_p): Add support for AES fusion.
839 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
841 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
843 * timevar.def (TV_PHASE_DBGINFO): Delete.
844 (TV_PHASE_CHECK_DBGINFO): Likewise.
845 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
847 2016-02-10 Richard Biener <rguenther@suse.de>
849 PR tree-optimization/69719
850 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
851 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
853 2016-02-09 Andrew Pinski <apinski@cavium.com>
856 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
857 get_vcond_mask_icode returns false.
859 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
862 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
863 an ADDIS that adds a pointer to a large constant that sets the
864 upper16 bits with a load operation.
866 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
869 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
871 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
873 (vzipq_s16): Likewise.
874 (vzipq_s32): Likewise.
875 (vzipq_f32): Likewise.
876 (vzipq_u8): Likewise.
877 (vzipq_u16): Likewise.
878 (vzipq_u32): Likewise.
879 (vzipq_p8): Likewise.
880 (vzipq_p16): Likewise.
882 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
885 * config/arm/arm.c (neon_endian_lane_map): New function.
886 (neon_vector_pair_endian_lane_map): New function.
887 (arm_evpc_neon_vuzp): Allow for big endian lane order.
888 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
890 (vuzpq_s16): Likewise.
891 (vuzpq_s32): Likewise.
892 (vuzpq_f32): Likewise.
893 (vuzpq_u8): Likewise.
894 (vuzpq_u16): Likewise.
895 (vuzpq_u32): Likewise.
896 (vuzpq_p8): Likewise.
897 (vuzpq_p16): Likewise.
899 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
902 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
905 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
907 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
908 truncate const_int operand 1 to QImode.
910 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
912 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
913 corresponding to an abnormal edge.
915 2016-02-09 Tom de Vries <tom@codesourcery.com>
917 PR tree-optimization/69599
918 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
920 (find_func_aliases_for_builtin_call, find_func_clobbers)
921 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
924 2016-02-09 Richard Biener <rguenther@suse.de>
926 PR tree-optimization/69715
927 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
928 LHS on calls as non-rewritable.
930 2016-02-09 Tom de Vries <tom@codesourcery.com>
933 * lto-wrapper.c (append_diag_options): New function.
934 (compile_offload_image): Call append_diag_options.
936 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
939 * doc/extend.texi (Flag Output Operands): Correct sectioning.
940 Minor copy-edit to fix verb tenses.
942 2016-02-08 Jakub Jelinek <jakub@redhat.com>
944 PR tree-optimization/69209
945 * ipa-split.c (split_function): If split part is not
946 returning retval, retval has gimple type but is not
947 gimple value, force it into a SSA_NAME first.
949 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
951 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
954 2016-02-08 Jason Merrill <jason@redhat.com>
957 * convert.c (convert_to_integer_1): Check dofold on truncation
959 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
960 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
961 Rename from *_nofold.
962 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
963 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
965 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
968 * tree.c (build_common_tree_nodes): Remove short_double argument.
970 * tree.h (build_common_tree_nodes): Adjust declaration.
971 * doc/invoke.texi (-fshort-double): Remove documentation.
972 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
973 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
974 * lto-wrapper.c (merge_and_complain, append_compiler_options)
975 (append_linker_options): Don't handle OPT_fshort_double.
977 PR rtl-optimization/68730
978 * lra-remat.c (insn_to_cand_activation): New static variable.
979 (lra_remat): Allocate and free it.
980 (create_cand): New arg activation. Initialize a field in
981 insn_to_cand_activation if it is nonnull.
982 (create_cands): Pass the activation insn to create_cand when making
983 a candidate involving an output reload. Reorganize code a little.
984 (do_remat): Keep track of active status of candidates in a separate
987 2016-02-08 Richard Biener <rguenther@suse.de>
989 PR tree-optimization/69719
990 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
991 Properly use absolute of the difference of the two offsets to
992 compare or adjust the segment length.
994 2016-02-08 Richard Biener <rguenther@suse.de>
995 Jeff Law <law@redhat.com>
998 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
999 types for anonymous SSA names.
1001 2016-02-08 Richard Biener <rguenther@suse.de>
1003 PR rtl-optimization/69274
1004 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
1006 2016-02-08 Jeff Law <law@redhat.com>
1008 PR tree-optimization/65917
1009 * tree-ssa-dom.c (record_temporary_equivalences): Record both
1010 equivalences from if (x == y) style conditionals.
1011 (loop_depth_of_name): Remove.
1012 (record_equality): Remove loop depth check.
1013 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
1014 (const_and_copies::record_const_or_copy_raw): New member function.
1015 * tree-ssa-scopedtables.c
1016 (const_and_copies::record_const_or_copy_raw): New, factored out of
1017 (const_and_copies::record_const_or_copy): Call new member function.
1019 2016-02-05 Jeff Law <law@redhat.com>
1021 PR tree-optimization/68541
1022 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
1023 (count_stmts_in_block): New function.
1024 (poor_ifcvt_candidate_code): Likewise.
1025 (is_feasible_trace): Add some heuristics to determine when path
1026 splitting is profitable.
1027 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
1028 is a diamond with a single exit.
1030 2016-02-05 Martin Sebor <msebor@redhat.com>
1033 * doc/invoke.texi: Update -Wplacement-new to take an optional
1036 2016-02-06 Richard Henderson <rth@redhat.com>
1039 * tree.c (tree_nop_conversion_p): Do not strip casts into or
1040 out of non-standard address spaces.
1042 2016-02-05 Jakub Jelinek <jakub@redhat.com>
1044 PR rtl-optimization/69691
1045 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
1047 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
1049 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
1050 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
1051 (*ieee128_mfvsrd_64bit): Likewise.
1052 (*ieee128_mfvsrd_32bit): Likewise.
1054 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
1058 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1060 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
1061 instrumented_version.
1063 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
1065 * doc/invoke.texi (Optimize Options): In table of --param options
1066 rename second occurrence of tracer-min-branch-ratio to
1067 tracer-min-branch-probability, rename
1068 tracer-min-branch-ratio-feedback to
1069 tracer-min-branch-probability-feedback and clarify description,
1070 rename sched-spec-state-edge-prob-cutoff to
1071 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
1072 to selsched-insns-to-rename, rename lto-minpartition to
1073 lto-min-partition, delete reorder-blocks-duplicate and
1074 reorder-blocks-duplicate-feedback.
1076 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1078 * config/s390/s390.c (s390_register_info_set_ranges): Remove
1081 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
1083 * doc/extend.texi: S/390: Correct some typos.
1085 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1087 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
1089 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1092 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
1093 (s390_register_info_gprtofpr): Use new macros above.
1094 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
1096 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
1097 its name. Adjust restore and save gpr ranges.
1098 (s390_register_info_set_ranges): New function.
1099 (s390_register_info): Use new macros above. Call
1100 s390_register_info_set_ranges.
1101 (s390_optimize_register_info): Likewise.
1102 (s390_hard_regno_rename_ok): Use new macros.
1103 (s390_hard_regno_scratch_ok): Likewise.
1104 (s390_emit_epilogue): Likewise.
1105 (s390_can_use_return_insn): Likewise.
1106 (s390_optimize_prologue): Likewise.
1107 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
1109 2016-02-05 Jakub Jelinek <jakub@redhat.com>
1112 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
1114 (ix86_option_override_internal): Disable TARGET_STV even for
1115 -m{incoming,preferred}-stack-boundary=3.
1117 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1119 * config.gcc: Mark deprecated rtems targets as obsolete.
1121 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
1123 PR rtl-optimization/64682
1124 PR rtl-optimization/69567
1125 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
1126 before I2 only if the register is both used and set in I2.
1128 2016-02-04 DJ Delorie <dj@redhat.com>
1130 * config/msp430/msp430.c (msp430_start_function): Add function type.
1132 2016-02-04 Jakub Jelinek <jakub@redhat.com>
1135 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
1137 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
1139 PR rtl-optimization/69577
1141 2015-10-29 Richard Henderson <rth@redhat.com>
1145 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
1146 sse check to the exact conditions of PR 67609.
1148 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
1151 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
1152 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
1153 not allowed into the traditional Altivec registers.
1154 (movtd_64bit_nodm): Likewise.
1155 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
1157 2016-02-04 David Malcolm <dmalcolm@redhat.com>
1159 * config/aarch64/cortex-a57-fma-steering.c
1160 (aarch64_register_fma_steering): Remove "static" from arguments
1163 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
1166 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
1169 2016-02-04 Mike Frysinger <vapier@gentoo.org>
1171 * doc/invoke.texi: Delete -mno-fma4.
1173 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
1175 PR rtl-optimization/69577
1176 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
1177 (find_subregs_of_mode): Update accordingly. Iterate over partial
1180 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
1182 * config/arm/arm-protos.h (neon_reinterpret): Remove.
1183 * config/arm/arm.c (neon_reinterpret): Remove.
1184 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
1185 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
1186 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
1187 vreinterpretti): Remove.
1188 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
1189 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
1190 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
1191 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
1192 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
1193 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
1194 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
1195 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
1196 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
1197 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
1198 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
1199 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
1200 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
1201 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
1202 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
1203 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
1204 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
1205 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
1206 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
1207 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
1208 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
1209 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
1210 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
1211 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
1212 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
1213 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
1214 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
1215 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
1216 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
1217 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
1218 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
1219 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
1220 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
1221 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
1222 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
1223 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
1224 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
1225 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
1226 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
1227 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
1228 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
1229 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
1230 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
1231 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
1232 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
1233 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
1234 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
1235 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
1236 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
1237 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
1238 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
1239 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
1240 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
1241 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
1242 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
1243 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
1244 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
1245 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
1246 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
1247 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
1248 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
1249 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
1250 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
1251 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
1252 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
1253 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
1254 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
1255 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
1256 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
1257 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
1258 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
1259 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
1260 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
1261 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
1262 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
1263 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
1264 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
1265 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
1266 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
1267 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
1268 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
1269 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
1270 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
1271 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
1272 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
1273 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
1274 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
1275 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
1276 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
1277 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
1278 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
1279 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
1280 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
1281 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
1282 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
1283 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
1284 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
1285 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
1286 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
1287 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
1288 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
1289 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
1290 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
1292 2016-02-04 Martin Liska <mliska@suse.cz>
1295 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
1296 that are gimple_store_p.
1297 (maybe_instrument_call): Likewise.
1299 2016-02-04 Bin Cheng <bin.cheng@arm.com>
1301 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
1302 register scaling out of memory reference and comment why.
1304 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1308 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
1309 folding the source of a SET.
1311 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1315 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
1316 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
1318 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
1322 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
1325 2016-02-04 Christian Bruel <christian.bruel@st.com>
1327 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
1328 * config/arm/arm.c (arm_set_current_function): Likewise.
1330 2016-02-04 Jakub Jelinek <jakub@redhat.com>
1331 Ilya Enkovich <enkovich.gnu@gmail.com>
1332 H.J. Lu <hongjiu.lu@intel.com>
1335 * config/i386/i386.c (convert_scalars_to_vector): Remove
1336 stack alignment fixes.
1337 (ix86_option_override_internal): Disable TARGET_STV if stack
1338 might not be aligned enough.
1339 (ix86_minimum_alignment): Assert that TARGET_STV is false.
1341 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
1343 * gcc/config/i386/x86-tune.def: Disable default prefetching
1346 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1347 Vladimir Makarov <vmakarov@redhat.com>
1350 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
1351 in validating fused toc addresses.
1353 2016-02-03 Jakub Jelinek <jakub@redhat.com>
1356 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
1357 range->m_caret fields if range->m_show_caret_p is false.
1360 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
1361 Force oldval into register if it does not satisfy reg_or_short_operand
1362 predicate. Fix up formatting.
1364 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
1365 Alexandre Oliva <aoliva@redhat.com>
1368 * lra-constraints.c (simplify_operand_subreg): Check additionally
1369 address validity after potential reloading.
1370 (process_address_1): Check insns validity. In case of failure do
1373 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
1376 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
1379 2016-02-02 Jakub Jelinek <jakub@redhat.com>
1381 * wide-int.cc (canonize_uhwi): New function.
1382 (wi::divmod_internal): Use it.
1384 2016-02-02 James Norris <jnorris@codesourcery.com
1386 * gimplify.c (omp_notice_variable): Add usage check.
1388 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
1390 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
1391 like LE, GE, LT, GT when emitting relational operator.
1393 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
1395 * ira-costs.c (find_costs_and_classes): Add extra argument.
1396 * target.def (ira_change_pseudo_allocno_class): Add parameter.
1397 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
1398 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
1399 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
1400 Add best_class parameter, and return it if not ALL_REGS.
1401 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
1403 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
1406 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
1408 * config/aarch64/aarch64.c
1409 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
1410 (aarch64_ira_change_pseudo_allocno_class): New function.
1412 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
1415 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
1417 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1419 * config/avr/avr.c (avr_option_override): Set
1420 PARAM_ALLOW_STORE_DATA_RACES to 1.
1422 2016-02-02 Richard Biener <rguenther@suse.de>
1424 PR tree-optimization/69595
1425 * match.pd: Add range test simplifications to true/false.
1427 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
1429 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
1430 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
1433 2016-02-02 Richard Biener <rguenther@suse.de>
1435 PR tree-optimization/69606
1436 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
1437 info on the result before moving a stmt.
1439 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
1442 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
1443 branch with vector comparison.
1444 * config/i386/sse.md (VI48_AVX): New mode iterator.
1445 (define_expand "cbranch<mode>4): Add support for conditional branch
1446 with vector comparison.
1447 * tree-vect-loop.c (optimize_mask_stores): New function.
1448 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
1449 has_mask_store field of vect_info.
1450 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
1451 vectorized loops having masked stores after vec_info destroy.
1452 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
1453 correspondent macros.
1454 (optimize_mask_stores): Add prototype.
1456 2016-02-02 Alan Modra <amodra@gmail.com>
1459 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
1462 2016-02-02 Alan Modra <amodra@gmail.com>
1465 * config/rs6000/rs6000.c (need_toc_init): New var, set it
1466 whenever toc_label_name used.
1467 (rs6000_file_start): Don't set up toc section here,
1468 (rs6000_output_function_epilogue): do so here instead,
1469 (rs6000_xcoff_file_start): and here.
1470 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
1471 (load_toc_aix_di): Likewise.
1473 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1475 PR rtl-optimization/69592
1476 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
1477 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
1478 (num_sign_bit_copies_binary_arith_p): New inline function.
1479 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
1481 2016-02-01 Jeff Law <law@redhat.com>
1483 PR tree-optimization/69580
1484 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
1485 * tree-ssa-threadbackward.c
1486 (fsm_find_control_statement_thread_paths): Do not try to walk
1487 through large PHI nodes.
1489 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1491 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
1492 when count is incremented above limit, don't analyze further
1495 * omp-low.c (oacc_parse_default_dims): Avoid
1496 -Wsign-compare warning, make sure value fits into int
1497 rather than just unsigned int.
1499 2016-02-01 Bin Cheng <bin.cheng@arm.com>
1501 PR tree-optimization/67921
1502 * fold-const.c (split_tree): New parameters. Convert pointer
1503 type variable part to proper type before negating.
1504 (fold_binary_loc): Pass new arguments to split_tree.
1506 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1508 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
1509 (nvptx_goacc_validate_dims): Extend to handle global defaults.
1510 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
1511 * doc/tm.texti: Rebuilt.
1512 * doc/invoke.texi (fopenacc-dim): Document.
1513 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
1514 (append_compiler_options): Likewise.
1515 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
1516 (oacc_parse_default_dims): New.
1517 (oacc_validate_dims): Add USED arg. Select non-unity default when
1519 (oacc_loop_fixed_partitions): Return mask of used partitions.
1520 (oacc_loop_auto_partitions): Emit dump info.
1521 (oacc_loop_partition): Return mask of used partitions.
1522 (execute_oacc_device_lower): Parse default dimension arg. Adjust
1523 loop partitioning and validation calls.
1525 2016-02-01 Richard Biener <rguenther@suse.de>
1528 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
1530 2016-02-01 Richard Biener <rguenther@suse.de>
1532 PR tree-optimization/69574
1533 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
1534 of asserting return chrec_dont_know.
1536 2016-02-01 Martin Liska <mliska@suse.cz>
1538 * mem-stats-traits.h: Add copyright header.
1539 * mem-stats.h: Likewise.
1541 2016-02-01 Richard Biener <rguenther@suse.de>
1543 PR tree-optimization/69579
1544 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
1545 Do not propagate through abnormal PHI results.
1547 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
1549 * postreload.c (reload_cse_simplify): Remove dead code.
1551 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1553 PR rtl-optimization/69570
1554 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
1555 if there is more than one set, not if there is a single set.
1557 2016-02-01 Richard Henderson <rth@redhat.com>
1560 * combine.c (make_compound_operation): When looking through a
1561 subreg, make sure to re-extend to the width of the outer mode.
1563 2016-01-30 Jakub Jelinek <jakub@redhat.com>
1565 PR tree-optimization/69546
1566 * wide-int.cc (wi::divmod_internal): For unsigned division
1567 where both operands fit into uhwi, if o1 is 1 and o0 has
1568 msb set, if divident_prec is larger than bits per hwi,
1569 clear another quotient word and return 2 instead of 1.
1570 Similarly for remainder with msb in HWI set, if dividend_prec
1571 is larger than bits per hwi.
1573 2016-01-29 Martin Jambor <mjambor@suse.cz>
1575 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
1576 Use short lowercase names.
1577 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
1578 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
1579 acq_rel one. Protect warning agains segfaults if
1580 get_memory_order_name returns NULL.
1581 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
1582 with release semantics. Do not warn if get_memory_order already did.
1583 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
1584 semantics. Fix check for relaxed or acquire semantics. Do not warn
1585 if get_memory_order already did.
1587 2016-01-29 Sebastian Pop <s.pop@samsung.com>
1589 * doc/install.texi: Document that isl-0.16 is supported.
1591 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
1594 * config/i386/constraints.md (Bm): Describe as special memory
1596 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
1597 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1598 * genpreds.c (struct constraint_data): Add is_special_memory.
1599 (have_special_memory_constraints, special_memory_start): New
1601 (special_memory_end): Ditto.
1602 (add_constraint): Add new arg is_special_memory. Add code to
1603 process its true value. Update have_special_memory_constraints.
1604 (process_define_constraint): Pass the new arg.
1605 (process_define_register_constraint): Ditto.
1606 (choose_enum_order): Process special memory.
1607 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
1608 function insn_extra_special_memory_constraint.
1609 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1610 * gensupport.c (process_rtx): Process
1611 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1612 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
1613 * ira-lives.c (single_reg_class): Use
1614 insn_extra_special_memory_constraint.
1615 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
1616 * lra-constraints.c (process_alt_operands): Ditto.
1617 (curr_insn_transform): Use insn_extra_special_memory_constraint.
1618 * recog.c (asm_operand_ok, preprocess_constraints): Process
1620 * reload.c (find_reloads): Ditto.
1621 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
1622 * stmt.c (parse_input_constraint): Use
1623 insn_extra_special_memory_constraint.
1625 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1628 * lra-splill.c (lra_final_code_change): Revert r229087 by
1629 removing all sub-registers.
1631 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
1634 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
1636 2016-01-29 Jakub Jelinek <jakub@redhat.com>
1639 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
1640 SSE1, copy target into the temporary reg first before recursing
1643 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1645 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
1648 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
1650 * ginclude/stdarg.h: Test __cplusplus instead of
1651 __GXX_EXPERIMENTAL_CXX0X__.
1653 2016-01-29 Richard Biener <rguenther@suse.de>
1655 PR tree-optimization/69547
1656 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
1657 Do not mark clobbers necessary.
1658 (mark_all_reaching_defs_necessary_1): Likewise.
1660 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1662 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
1663 declaration name with %qs and print it in both error messages.
1664 Also fix indentation.
1666 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1669 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
1670 trailing blank line from error message.
1672 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
1675 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
1678 2016-01-29 Richard Biener <rguenther@suse.de>
1681 * match.pd: Allow all integral types when simplifying a
1682 widening or sign-changing conversion.
1684 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1686 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
1687 back to setting codegen_error to fail codegen.
1689 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
1692 * config/i386/constraints.md (C): Only accept constant zero operand.
1693 (BC): New constraint.
1694 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
1695 instead of C constraint.
1696 * doc/md.texi (Machine Constraints): Update description
1699 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
1702 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
1704 2016-01-28 Jakub Jelinek <jakub@redhat.com>
1707 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
1710 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
1712 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
1713 branches if using guessed profile.
1715 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
1717 * graphite-optimize-isl.c (optimize_isl): Fix dump.
1719 2016-01-28 Richard Henderson <rth@redhat.com>
1722 * config/aarch64/aarch64-modes.def (CC_Cmode): New
1723 * config/aarch64/aarch64-protos.h: Update.
1724 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
1725 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
1726 (aarch64_get_condition_code_1): Handle CC_Cmode.
1727 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
1728 (*add<mode>3_compareC_cconly_imm): New.
1729 (*add<mode>3_compareC_cconly): New.
1730 (*add<mode>3_compareC_imm): New.
1731 (add<mode>3_compareC): New.
1732 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
1733 to be first. Use aarch64_carry_operation.
1734 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
1735 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
1736 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
1737 (subti3): Use subdi3_compare1.
1738 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
1739 (sub<mode>3_compare1): New.
1740 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
1741 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
1742 (*subsi3_carryin_uxtw): Likewise.
1743 (*ngc<mode>, *ngcsi_uxtw): Likewise.
1744 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
1745 * config/aarch64/iterators.md (DWI): New.
1746 * config/aarch64/predicates.md (aarch64_carry_operation): New.
1747 (aarch64_borrow_operation): New.
1749 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1751 * graphite-optimize-isl.c (optimize_isl): Print a different debug
1752 message when isl does not return a valid schedule.
1754 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1756 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1757 Remove comments from class declarations: they are already in the code
1760 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1762 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
1764 (ternary_op_to_tree): Same.
1765 (unary_op_to_tree): Same.
1766 (nary_op_to_tree): Same.
1767 (gcc_expression_from_isl_expr_op): Same.
1768 (gcc_expression_from_isl_expression): Same.
1769 (graphite_create_new_loop): Same.
1770 (graphite_create_new_loop_guard): Same.
1771 (build_iv_mapping): Same.
1772 (graphite_create_new_guard): Same.
1773 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
1774 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
1776 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1778 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
1779 instead of setting codegen_error to fail codegen.
1781 2016-01-28 Jason Merrill <jason@redhat.com>
1783 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
1785 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1787 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
1788 Remove CONST_INT_P check in CCMP cost calculation.
1790 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1792 * config/aarch64/aarch64.c (generic_vector_cost):
1793 Set vec_permute_cost.
1794 (cortexa57_vector_cost): Likewise.
1795 (exynosm1_vector_cost): Likewise.
1796 (xgene1_vector_cost): Likewise.
1797 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
1798 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
1799 Add vec_permute_cost entry.
1801 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1803 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
1805 (add<mode>3_compare0): Likewise.
1806 (addsi3_compare0_uxtw): Likewise.
1807 (add<mode>3nr_compare0): Likewise.
1808 (compare_neg<mode>): Likewise.
1809 (<optab><mode>3): Likewise.
1811 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
1813 * tree-vect-stmts.c (vectorizable_comparison): Add
1814 NULL check for vectype.
1816 2016-01-28 Richard Biener <rguenther@suse.de>
1818 PR tree-optimization/69466
1819 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1820 Account for PHIs we couldn't duplicate.
1822 2016-01-28 Martin Liska <mliska@suse.cz>
1825 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
1826 instead of ENABLE_VALGRIND_CHECKING.
1828 2016-01-27 Richard Henderson <rth@redhat.com>
1831 * lra-remat.c (subreg_regs): New.
1832 (dump_candidates_and_remat_bb_data): Dump it.
1833 (operand_to_remat): Reject if operand in subreg_regs.
1834 (set_bb_regs): Collect subreg_regs.
1835 (lra_remat): Init and free subreg_regs. Compute
1836 calculate_local_reg_remat_bb_data before create_cands.
1838 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
1841 * config/i386/i386.c (ix86_update_stack_boundary): Don't
1842 change stack_alignment_needed for __tls_get_addr call.
1844 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
1846 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
1848 2016-01-27 Jeff Law <law@redhat.com>
1850 PR tree-optimization/68398
1851 PR tree-optimization/69196
1852 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
1853 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
1854 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1855 Only count PHIs in the last block in the path. The others will
1856 const/copy propagate away. Add heuristic to allow more irreducible
1857 subloops to be created when it is likely profitable to do so.
1859 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1860 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
1861 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
1863 2016-01-27 Jakub Jelinek <jakub@redhat.com>
1866 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
1867 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
1868 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
1869 * tree-streamer-in.c: Include asan.h.
1870 (streamer_get_builtin_tree): For builtins in sanitizer
1871 range call initialize_sanitizer_builtins and retry.
1873 2016-01-27 Ian Lance Taylor <iant@google.com>
1875 * common.opt (fkeep-gc-roots-live): New undocumented option.
1876 * tree-ssa-loop-ivopts.c (add_candidate_1): If
1877 -fkeep-gc-roots-live, skip pointers.
1878 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
1881 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
1884 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
1885 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
1887 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
1890 * configure.ac: NetBSD provides SSP in its C library.
1891 * configure: Updated.
1893 2016-01-27 Richard Biener <rguenther@suse.de>
1895 PR tree-optimization/69166
1896 * tree-vect-loop.c (vect_is_simple_reduction): Always check
1897 reduction code for commutativity / associativity.
1899 2016-01-27 Martin Jambor <mjambor@suse.cz>
1901 PR tree-optimization/69355
1902 * tree-sra.c (analyze_access_subtree): Correct hole detection when
1903 total_scalarization fails.
1905 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
1907 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
1910 2016-01-27 Christian Bruel <christian.bruel@st.com>
1913 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
1914 Move arm_reset_previous_fndecl and set_target_option_current_node in
1915 the conditional part. Call save_restore_target_globals.
1916 * config/arm/arm.c (arm_set_current_function):
1917 Refactor to better support #pragma target and attribute mix.
1918 Call save_restore_target_globals.
1919 * config/arm/arm-protos.h (save_restore_target_globals): New function.
1921 2016-01-27 Martin Liska <mliska@suse.cz>
1923 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
1924 reference for an HSA kernel and its host function.
1926 2016-01-27 Jakub Jelinek <jakub@redhat.com>
1928 PR tree-optimization/69399
1929 * wide-int.h (wi::lrshift): For larger precisions, only
1930 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
1932 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
1934 * config/arc/predicates.md (proper_comparison_operator): Reject
1935 constant-constant comparison.
1937 2016-01-26 Tom de Vries <tom@codesourcery.com>
1939 PR tree-optimization/69110
1940 * tree-data-ref.c (initialize_data_dependence_relation): Handle
1941 DR_NUM_DIMENSIONS == 0.
1943 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1944 Sebastian Pop <s.pop@samsung.com>
1946 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
1947 isl_ast_op_cond and isl_ast_op_select.
1948 (gcc_expression_from_isl_expr_op): Same.
1950 2016-01-26 Jason Merrill <jason@redhat.com>
1953 * tree.c (recompute_constructor_flags): Split out from
1955 (verify_constructor_flags): New.
1956 * tree.h: Declare them.
1958 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
1960 PR rtl-optimization/69217
1961 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
1962 are no TYPE_FIELDS set for the record type.
1964 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1967 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
1968 toc_label_name unconditionally.
1969 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
1970 SYMBOL_REF string. Use toc_label_name instead of constructing
1972 (rs6000_elf_declare_function_name): Use toc_label_name instead of
1973 constructing LCTOC1.
1975 2016-01-26 Martin Sebor <msebor@redhat.com>
1978 * doc/extend.texi (Common Type Attributes): Move text that talks about
1979 attribute packed from attribute aligned to the section discussing
1980 the former attribute for clarity.
1982 2016-01-26 Richard Henderson <rth@redhat.com>
1985 * trans-mem.c (tm_region_init): Mark entry block as visited.
1987 2016-01-26 David Malcolm <dmalcolm@redhat.com>
1990 * diagnostic-show-locus.c (layout::print_source_line): Replace
1991 call to pp_newline with call to layout::print_newline.
1992 (layout::print_annotation_line): Likewise.
1993 (layout::move_to_column): Likewise.
1994 (layout::print_any_fixits): After printing any fixits, print a
1995 trailing newline, if necessary.
1996 (layout::print_newline): New method, resetting any colorization
1998 (diagnostic_show_locus): Move the pp_newline to before the
1999 early bailout. Remove dummy block enclosing the layout instance.
2000 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
2001 of pp_newline_and_flush with pp_flush.
2002 (diagnostic_append_note): Delete use of pp_newline.
2003 (diagnostic_append_note_at_rich_loc): Delete.
2004 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
2005 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
2006 when newline characters are added to the buffer.
2008 2016-01-26 Michael Matz <matz@suse.de>
2010 * configure.ac (ac_cv_std_swap_in_utility): New test.
2011 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
2012 * configure: Regenerate.
2013 * config.in: Regenerate.
2015 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
2017 * config/arc/arc.md (cstoresi4): Force operand into register.
2018 (arcset<code>): Fix predicate.
2019 (arcsetltu): Likewise.
2020 (arcsetgeu): Likewise.
2021 (arcsethi): Likewise.
2022 (arcsetls): Likewise.
2024 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2026 PR tree-optimization/69483
2027 * gimple-fold.c (canonicalize_constructor_val): Return NULL
2028 if base has error_mark_node type.
2030 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
2033 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
2034 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
2036 (vget_lane_f16): Handle big-endian.
2037 (vgetq_lane_f16): Likewise.
2038 (vset_lane_f16): Likewise.
2039 (vsetq_lane_f16): Likewise.
2040 * config/arm/iterators.md (VQXMOV): Add V8HF.
2041 (VDQ): Add V4HF and V8HF.
2042 (V_reg): Handle V4HF and V8HF.
2043 (Is_float_mode): Likewise.
2044 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
2045 neon_vdup_nv8hf): New patterns.
2046 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
2047 Use VD_LANE iterator.
2048 (neon_vld1_dup<mode>): Use VQ2 iterator.
2050 2016-01-26 Nathan Sidwell <nathan@acm.org>
2052 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
2053 (set_oacc_fn_attrib): Add IS_KERNEL arg.
2054 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
2055 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
2056 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
2057 (oacc_validate_dims): Add LEVEL arg, don't return level.
2058 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
2060 (execute_oacc_device_lower): Adjust, add more dump output.
2061 * tree-ssa-loop.c (gate_oacc_kernels): Use
2062 oacc_fn_attrib_kernels_p.
2063 * tree-parloops.c (create_parallel_loop): Adjust
2064 set_oacc_fn_attrib call.
2066 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2069 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
2070 (append_compiler_options): Handle -fcilkplus.
2071 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
2073 2016-01-26 Nick Clifton <nickc@redhat.com>
2076 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
2077 been marked as DECL_ONE_ONLY but we do not the means to make it
2078 so, then do not allow it to bind locally.
2080 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2083 * opts.h (parse_sanitizer_options): New prototype.
2084 * opts.c (sanitizer_opts): New array.
2085 (parse_sanitizer_options): New function.
2086 (common_handle_option): Use parse_sanitizer_options.
2088 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
2091 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
2092 alignment adjustment to ...
2093 (ix86_update_stack_boundary): Here. Don't over-align stack for
2095 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
2096 if __tls_get_addr is called.
2098 2016-01-26 Christian Bruel <christian.bruel@st.com>
2100 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
2102 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
2104 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
2106 2016-01-26 Richard Biener <rguenther@suse.de>
2109 * match.pd: Guard X * CST CMP 0 pattern with single_use.
2111 2016-01-26 Richard Biener <rguenther@suse.de>
2113 PR tree-optimization/69452
2114 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
2115 (move_computations_dom_walker::before_dom_children): Rename
2117 (move_computations_worker): This.
2118 (move_computations): Perform an RPO rather than a DOM walk.
2120 2016-01-26 Jakub Jelinek <jakub@redhat.com>
2123 * combine.c (combine_instructions): For REG_EQUAL note with
2124 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
2125 to the underlying register.
2126 * doc/rtl.texi (REG_EQUAL): Document the behavior of
2127 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
2129 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
2132 * config/aarch64/aarch64-builtins.c
2133 (aarch64_init_simd_builtin_types): Do not set structural
2134 equality to __Poly{8,16,64,128}_t types.
2136 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
2138 PR tree-optimization/69400
2139 * wide-int.cc (wi_pack): Take the precision as argument and
2140 perform canonicalization here rather than in the callers.
2141 Use the main loop to handle all full-width HWIs. Add a
2142 zero HWI if in_len isn't a full result.
2143 (wi::divmod_internal): Update accordingly.
2144 (wi::mul_internal): Likewise. Simplify.
2146 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
2147 Sebastian Pop <s.pop@samsung.com>
2149 * graphite-poly.c (apply_poly_transforms): Simplify.
2150 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
2151 (print_isl_map): Same.
2152 (print_isl_union_map): Same.
2153 (print_isl_schedule): New.
2154 (debug_isl_schedule): New.
2155 * graphite-dependences.c (scop_get_reads): Do not call
2156 isl_union_map_add_map that is undocumented isl functionality.
2157 (scop_get_must_writes): Same.
2158 (scop_get_may_writes): Same.
2159 (scop_get_original_schedule): Remove.
2160 (scop_get_dependences): Do not call isl_union_map_compute_flow that
2161 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
2162 (compute_deps): Remove.
2163 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
2164 (debug_schedule_ast): New.
2165 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
2166 set_separate_option.
2167 (graphite_regenerate_ast_isl): Add dump.
2168 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
2169 from scop->transformed_schedule.
2170 (graphite_regenerate_ast_isl): Add more dump.
2171 * graphite-optimize-isl.c (optimize_isl): Set
2172 scop->transformed_schedule. Check whether schedules are equal.
2173 (apply_poly_transforms): Move here.
2174 * graphite-poly.c (apply_poly_transforms): ... from here.
2175 (free_poly_bb): Static.
2176 (free_scop): Static.
2177 (pbb_number_of_iterations_at_time): Remove.
2178 (print_isl_ast): New.
2179 (debug_isl_ast): New.
2180 (debug_scop_pbb): New.
2181 * graphite-scop-detection.c (print_edge): Move.
2183 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
2184 (build_scop_scattering): Remove.
2185 (create_pw_aff_from_tree): Assert instead of bailing out.
2186 (add_condition_to_pbb): Remove unused code, do not fail.
2187 (add_conditions_to_domain): Same.
2188 (add_conditions_to_constraints): Remove.
2189 (build_scop_context): New.
2190 (add_iter_domain_dimension): New.
2191 (build_iteration_domains): Initialize pbb->iterators.
2192 Call add_conditions_to_domain.
2195 (index_outermost_in_loop): New.
2196 (index_pbb_in_loop): New.
2197 (outermost_pbb_in): New.
2198 (add_in_sequence): New.
2199 (add_outer_projection): New.
2200 (outer_projection_mupa): New.
2201 (add_loop_schedule): New.
2202 (build_schedule_pbb): New.
2203 (build_schedule_loop): New.
2204 (embed_in_surrounding_loops): New.
2205 (build_schedule_loop_nest): New.
2206 (build_original_schedule): New.
2207 (build_poly_scop): Call build_original_schedule.
2208 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
2209 (free_poly_dr): Remove.
2210 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
2211 (free_poly_bb): Remove.
2212 (debug_loop_vec): Remove.
2213 (print_isl_ast): Declare.
2214 (debug_isl_ast): Declare.
2215 (scop_do_interchange): Remove.
2216 (scop_do_strip_mine): Remove.
2217 (scop_do_block): Remove.
2218 (flatten_all_loops): Remove.
2219 (optimize_isl): Remove.
2220 (pbb_number_of_iterations_at_time): Remove.
2221 (debug_scop_pbb): Declare.
2222 (print_schedule_ast): Declare.
2223 (debug_schedule_ast): Declare.
2224 (struct scop): Remove schedule. Add original_schedule,
2225 transformed_schedule.
2226 (free_gimple_poly_bb): Remove.
2227 (print_generated_program): Remove.
2228 (debug_generated_program): Remove.
2229 (unify_scattering_dimensions): Remove.
2230 * sese.c (print_edge): ... here.
2231 (print_sese): ... here.
2232 (debug_edge): ... here.
2233 (debug_sese): ... here.
2234 * sese.h (print_edge): Declare.
2235 (print_sese): Declare.
2236 (dump_edge): Declare.
2237 (dump_sese): Declare.
2239 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
2240 Sebastian Pop <s.pop@samsung.com>
2242 * Makefile.in: Set ISLVER in site.exp.
2244 2016-01-25 Jakub Jelinek <jakub@redhat.com>
2246 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
2247 DECL_VALUE_EXPR of new_var even for the non-array case. Look
2248 through DECL_VALUE_EXPR for expansion.
2250 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2252 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
2253 the frame info after reload completed.
2255 2016-01-25 Jeff Law <law@redhat.com>
2257 PR tree-optimization/69196
2258 PR tree-optimization/68398
2259 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
2260 tree-ssa-threadupdate.c.
2261 (determine_bb_domination_status): Prototype
2262 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
2263 (determine_bb_domination_status): No longer static.
2264 (valid_jump_thread_path): Remove code to detect characteristics
2265 of the jump thread path not associated with correctness.
2266 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
2267 Correct test for thread path length. Count PHIs for real operands as
2268 statements that need to be copied. Do not count ASSERT_EXPRs.
2269 Look at all the blocks in the thread path. Compute and selectively
2270 filter thread paths based on threading through the latch, threading
2271 a multiway branch or crossing a multiway branch.
2273 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2275 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
2276 decl with __attribute__ ((unused)) annotation.
2278 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
2281 * tree-vect-stmts.c (vectorizable_condition): Check vectype
2282 of operands is compatible with a statement vectype.
2284 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
2286 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
2287 improve wording for mixed storage order support.
2289 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
2291 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
2292 (vcvt_u64_f64): Likewise.
2293 (vcvta_s64_f64): Likewise.
2294 (vcvta_u64_f64): Likewise.
2295 (vcvtm_s64_f64): Likewise.
2296 (vcvtm_u64_f64): Likewise.
2297 (vcvtn_s64_f64): Likewise.
2298 (vcvtn_u64_f64): Likewise.
2299 (vcvtp_s64_f64): Likewise.
2300 (vcvtp_u64_f64): Likewise.
2302 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
2304 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
2305 (arc_init): Check validity mll64 option.
2306 (arc_save_restore): Use double load/store instruction.
2307 (arc_expand_movmem): Likewise.
2308 (arc_split_move): Don't split if we have double load/store
2309 instructions. Returns a boolean.
2310 (arc_process_double_reg_moves): Change function to return boolean
2311 instead of a sequence of instructions.
2312 (arc_dwarf_register_span): New function.
2313 * config/arc/arc-protos.h (arc_split_move): Change prototype.
2314 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
2315 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
2316 (*movdf_insn): Likewise.
2317 * config/arc/arc.opt (mll64): New option.
2318 * config/arc/predicates.md (even_register_operand): New predicate.
2319 * doc/invoke.texi (ARC Options): Add mll64 documentation.
2321 2016-01-25 Richard Biener <rguenther@suse.de>
2324 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
2325 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
2327 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
2329 2016-01-25 Richard Biener <rguenther@suse.de>
2331 PR tree-optimization/69376
2332 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
2334 (VN_INFO_ANTI_RANGE_P): New inline.
2335 (VN_INFO_RANGE_TYPE): Likewise.
2336 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
2337 SSA_NAME_ANTI_RANGE_P.
2338 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
2339 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2340 Properly query VN_INFO_RANGE_TYPE.
2342 2016-01-25 Nick Clifton <nickc@redhat.com>
2345 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
2347 2016-01-23 Tom de Vries <tom@codesourcery.com>
2349 PR tree-optimization/69426
2350 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
2353 2016-01-23 Jakub Jelinek <jakub@redhat.com>
2355 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
2356 "the the" with "the" in the comments.
2357 * ipa-devirt.c (build_type_inheritance_graph,
2358 update_type_inheritance_graph): Likewise.
2359 * tree.c (build_function_type_list_1): Likewise.
2360 * cfgloopmanip.c (scale_loop_profile): Likewise.
2361 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
2362 * gimple-ssa-split-paths.c
2363 (find_block_to_duplicate_for_splitting_paths): Likewise.
2364 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
2365 * expr.c (convert_move): Likewise.
2366 * var-tracking.c (vt_stack_adjustments): Likewise.
2367 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
2368 * tree-vrp.c (test_for_singularity): Likewise.
2370 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
2371 directly instead of building a temporary tree.
2374 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
2375 remove <algorithm> include.
2377 2016-01-22 Jakub Jelinek <jakub@redhat.com>
2380 * config/i386/i386.c: Include dojump.h.
2381 (expand_small_movmem_or_setmem,
2382 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
2384 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
2385 if dynamic_check != -1.
2387 2016-01-21 Jeff Law <law@redhat.com>
2390 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
2391 record_temporary_equivalences. Rewritten to avoid unnecessary calls
2392 into dominated_by_p.
2393 (cprop_into_successor_phis): Avoid unnecessary tests.
2395 2016-01-22 Richard Henderson <rth@redhat.com>
2398 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
2399 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
2401 2016-01-22 Michael Matz <matz@suse.de>
2403 * system.h (string, algorithm): Include only conditionally.
2404 (new): Include always under C++.
2405 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
2406 * final.c (toplevel): Ditto.
2407 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
2408 * genconditions.c (write_header): Make gencondmd.c define
2410 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
2412 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
2413 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
2415 2016-01-22 Christian Bruel <christian.bruel@st.com>
2418 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
2420 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2423 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
2424 define_insn_and_split. Ensure operands[1] and operands[0] do not
2425 get assigned the same register.
2427 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
2429 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
2431 2016-01-22 Christian Bruel <christian.bruel@st.com>
2433 * config/arm/arm-c.c (arm_pragma_target_parse):
2434 Remove warn_builtin_macro_redefined overwrite.
2436 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
2438 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
2439 flag_non_call_exceptions compatibility.
2441 2016-01-22 Jakub Jelinek <jakub@redhat.com>
2444 * dwarf2out.c (add_child_die_after): New function.
2445 (dwarf_qual_info_t): New type.
2446 (dwarf_qual_info): New variable.
2447 (qualified_die_p): New function.
2448 (modified_type_die): For -fdebug-types-section, ensure
2449 canonical order of qualifiers. Put qualified DIEs adjacent
2450 to the corresponding non-qualified type DIE and search there
2451 for existing qualified DIEs.
2453 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
2455 * doc/extend.texi (scalar_storage_order type attribute): Document
2456 restriction on type punning and aliasing, and remove future tense.
2458 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
2461 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
2464 2016-01-21 Jeff Law <law@redhat.com>
2467 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
2468 useless call to record_temporary_equivalences.
2469 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
2470 allocate 10 slots in the bb_path vector and let it grow as needed.
2471 (fsm_find_control_statement_thread_paths): Similarly for the next_path
2474 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
2476 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
2478 * configure: Regenerate.
2480 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
2482 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
2483 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
2485 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
2488 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
2489 drop EXPAND_INITIALIZER.
2490 * rtl.h (contains_symbolic_reference_p): Declare.
2491 * rtlanal.c (contains_symbolic_reference_p): New function.
2492 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
2493 a subtraction into a NOT if symbolic constants are involved.
2495 2016-01-21 Anton Blanchard <anton@samba.org>
2496 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2499 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
2501 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
2504 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
2506 * config/microblaze/microblaze.c
2507 (get_branch_target): New.
2508 (insert_wic_for_ilb_runout): New.
2510 (microblaze_machine_dependent_reorg): New.
2511 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
2512 * config/microblaze/microblaze.md
2513 (UNSPEC_IPREFETCH): Define.
2514 (iprefetch): New pattern
2515 * config/microblaze/microblaze.opt
2516 (mxl-prefetch): New flag.
2518 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
2520 * config/microblaze/microblaze.h
2521 (FIXED_REGISTERS): Update in macro.
2522 (CALL_USED_REGISTERS): Update in macro.
2524 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
2526 PR rtl-optimization/68920
2527 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
2530 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
2532 PR rtl-optimization/68990
2533 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
2534 pseudo instead of inheritance ones.
2536 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2537 Nick Clifton <nickc@redhat.com>
2541 * config/mips/mips.c (mips_compute_frame_info): Initialise
2542 args_size and hard_frame_pointer_offset fields of the frame
2543 structure before calling mips_global_pointer.
2545 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
2547 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
2549 * configure: Regenerate.
2551 2016-01-21 Richard Biener <rguenther@suse.de>
2553 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
2555 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2557 * config/s390/s390.c (s390_asm_declare_function_size): Add code
2558 to actually emit the .size directive.
2560 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
2561 Jakub Jelinek <jakub@redhat.com>
2565 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
2566 args array size by one to avoid buffer overflow.
2568 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2570 * config/s390/s390.md (pool_section_start): Use switch_to_section
2571 to select proper read-only data section instead of hardcoding
2573 (pool_section_end): Use switch_to_section to match the above.
2575 2016-01-21 Richard Biener <rguenther@suse.de>
2577 PR tree-optimization/69378
2578 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
2579 (set_ssa_val_to): Use it for dominance checks taking into
2580 account not executable edges.
2582 2016-01-21 Jakub Jelinek <jakub@redhat.com>
2585 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
2586 for bitsize instead of GET_MODE_PRECISION (mode).
2588 2016-01-20 Martin Sebor <msebor@redhat.com>
2591 * extend.texi (__sync Builtins): Clarify the semantics of
2592 __sync_fetch_and_OP built-ins on pointers.
2593 (__atomic Builtins): Same.
2595 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2596 Sebastian Pop <s.pop@samsung.com>
2598 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
2599 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
2600 (is_valid_rename): Same.
2601 (translate_isl_ast_to_gimple::get_rename): Same.
2602 (translate_isl_ast_to_gimple::rename_all_uses): Same.
2603 (translate_isl_ast_to_gimple::rename_uses): Same.
2604 (get_new_name): Check for close_phi nodes.
2605 (copy_loop_phi_args): Use phi_node_kind.
2606 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2607 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
2609 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2610 Sebastian Pop <s.pop@samsung.com>
2612 Revert commit r229783.
2613 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2614 Remove use of parameter_rename_map.
2616 (copy_internal_parameters): Remove.
2617 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2618 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2619 (free_sese_info): Do not free parameter_rename_map.
2620 (set_rename): Do not use parameter_rename_map.
2621 (rename_uses): Update call to set_rename.
2622 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2623 * sese.h (parameter_rename_map_t): Remove.
2624 (struct sese_info_t): Remove field parameter_rename_map.
2626 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2627 Sebastian Pop <s.pop@samsung.com>
2629 * graphite-isl-ast-to-gimple.c: Fix comment.
2630 * graphite-scop-detection.c (defined_in_loop_p): New.
2631 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
2632 names defined in loop.
2634 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2635 Sebastian Pop <s.pop@samsung.com>
2637 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
2638 Discard unstructured if-then-else regions.
2640 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2641 Sebastian Pop <s.pop@samsung.com>
2643 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
2644 (cleanup_loop_iter_dom): Remove.
2645 (build_loop_iteration_domains): Remove.
2646 (build_scop_context): Remove.
2647 (build_scop_iteration_domain): Remove.
2648 (add_loop_constraints): New.
2649 (build_iteration_domains): New.
2650 (build_poly_scop): Call build_iteration_domains.
2652 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2653 Sebastian Pop <s.pop@samsung.com>
2655 * graphite-scop-detection.c
2656 (scop_detection::harmful_loop_in_region): Free dom and loops.
2657 (scop_detection::loop_body_is_valid_scop): Free bbs.
2659 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2660 Sebastian Pop <s.pop@samsung.com>
2662 * graphite-scop-detection.c (record_loop_in_sese): New.
2663 (gather_bbs::before_dom_children): Call record_loop_in_sese.
2664 (build_scops): Remove call to build_sese_loop_nests.
2665 * sese.c (sese_record_loop): Remove.
2666 (build_sese_loop_nests): Remove.
2667 (new_sese_info): Remove region->loops.
2668 (free_sese_info): Same.
2669 * sese.h (sese_contains_loop): Same.
2670 (build_sese_loop_nests): Remove.
2671 (sese_contains_loop): Remove.
2673 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2674 Sebastian Pop <s.pop@samsung.com>
2676 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
2677 loop_is_valid_in_scop.
2678 (scop_detection::harmful_stmt_in_region): Renamed
2679 harmful_loop_in_region.
2680 Call loop_is_valid_in_scop.
2682 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2683 Sebastian Pop <s.pop@samsung.com>
2685 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
2688 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2689 Sebastian Pop <s.pop@samsung.com>
2691 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
2692 * graphite.h (struct poly_bb): Remove field is_reduction.
2693 (PBB_IS_REDUCTION): Remove.
2695 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2696 Sebastian Pop <s.pop@samsung.com>
2698 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
2699 (add_pdr_constraints): Same.
2700 (scop_get_reads): Same.
2701 (scop_get_must_writes): Same.
2702 (scop_get_may_writes): Same.
2703 (scop_get_original_schedule): Same.
2704 (extend_schedule): Same.
2705 (apply_schedule_on_deps): Same.
2706 (carries_deps): Same.
2707 (compute_deps): Same.
2708 (scop_get_dependences): Same.
2709 * graphite-isl-ast-to-gimple.c
2710 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
2711 * graphite-optimize-isl.c (get_schedule_for_band): Same.
2712 (get_schedule_for_band_list): Same.
2713 (get_schedule_map): Same.
2714 (apply_schedule_map_to_scop): Same.
2715 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
2716 (build_loop_iteration_domains): Same.
2717 (add_condition_to_pbb): Same.
2718 (add_param_constraints): Same.
2719 (pdr_add_memory_accesses): Same.
2720 (pdr_add_data_dimensions): Same.
2722 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
2724 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
2727 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
2729 * common.opt (feliminate-dwarf2-dups): Replace references to
2730 "DWARF 2" with just "DWARF".
2731 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
2732 * doc/extend.texi: Likewise.
2733 * doc/cpp.texi: Likewise.
2734 * doc/invoke.texi: Likewise.
2735 (Option Summary): Add -gdwarf to list of Debugging Options.
2736 (Debugging Options): Document -gdwarf.
2737 * doc/contrib.texi: Spell "DWARF" like that.
2739 2016-01-21 Jakub Jelinek <jakub@redhat.com>
2741 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
2742 warning. Fix up formatting.
2745 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
2746 attempt to mark memory input operand addressable and
2747 call prepare_gimple_addressable in that case. Don't adjust
2748 input_location for diagnostics, use error_at instead.
2750 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
2752 * config/rs6000/ppc-auxv.h: New file.
2753 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
2755 (cpu_supports): Likewise.
2756 * config/rs6000/rs6000.c: include "ppc-auxv.h".
2757 (cpu_is_info): New variable.
2758 (cpu_supports_info): Likewise.
2759 (tcb_verification_symbol): Likewise.
2760 (cpu_builtin_p): Likewise.
2761 (cpu_expand_builtin): New function.
2762 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
2763 (rs6000_init_builtins): Likewise.
2764 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
2765 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
2766 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
2767 * configure: Regenerate.
2768 * config.in: Likewise.
2769 * doc/extend.texi (PowerPC Built-in Functions): Document
2770 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
2772 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
2775 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
2777 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
2780 2016-01-20 Richard Henderson <rth@redhat.com>
2786 * tree.c (tm_define_builtin): New.
2787 (find_tm_vector_type): New.
2788 (build_tm_vector_builtins): New.
2789 (build_common_builtin_nodes): Call it.
2791 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
2793 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
2794 (arm_fp_ok): Likewise.
2796 (arm_crypto): Likewise.
2798 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
2799 Richard Biener <rguenther@suse.de>
2801 PR tree-optimization/69328
2802 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
2803 vectors have same number of elements.
2804 (vectorizable_condition): Fix masked version recognition.
2806 2016-01-20 Richard Biener <rguenther@suse.de>
2808 PR tree-optimization/69345
2809 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
2810 (VN_INFO_PTR_INFO): Likewise.
2811 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
2812 info when it is equal between non-dominating SSA names.
2813 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2814 Make sure to look at original SSA infos.
2816 2016-01-20 Jeff Law <law@redhat.com>
2819 * config/m68k/predicates.md (pow2_m1_operand): New predicate
2821 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
2822 (pc_or_label_operand): New predicate.
2823 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
2824 tests for small integers that are 2^n - 1.
2826 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
2828 * doc/invoke.texi (Options Summary): Add '.' after @xref.
2830 2016-01-19 Jeff Law <law@redhat.com>
2833 * tree-ssa-threadbackwards.c
2834 (fsm_find_control_statement_thread_paths): Do not try to lookup
2835 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
2837 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
2839 * doc/lto.texi: Remove text that says only Gold has linker plugin
2842 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
2844 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
2845 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
2846 the DIE accordingly.
2847 (modified_type_die): Add REVERSE parameter and pass it recursively,
2848 as well as to base_type_die. Adjust presence check accordingly.
2849 (base_type_for_mode): Adjust call to modified_type_die.
2850 (add_type_attribute): Add REVERSE parameter and pass it to
2852 (generic_parameter_die): Adjust call to add_type_attribute.
2853 (add_scalar_info): Likewise.
2854 (add_subscript_info): Likewise.
2855 (gen_array_type_die): Likewise.
2856 (gen_descr_array_type_die): Likewise.
2857 (gen_entry_point_die): Likewise.
2858 (gen_enumeration_type_die): Likewise.
2859 (gen_formal_parameter_die): Likewise.
2860 (gen_subprogram_die): Likewise.
2861 (gen_variable_die ): Likewise.
2862 (gen_const_die): Likewise.
2863 (gen_field_die): Likewise.
2864 (gen_pointer_type_die): Likewise.
2865 (gen_reference_type_die): Likewise.
2866 (gen_ptr_to_mbr_type_die): Likewise.
2867 (gen_inheritance_die): Likewise.
2868 (gen_subroutine_type_die): Likewise.
2869 (gen_typedef_die): Likewise.
2870 (force_type_die): Adjust call to modified_type_die.
2872 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
2874 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
2875 flow throughout the file. Fix broken link to Objective-C 2.0
2877 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
2880 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2882 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
2884 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2887 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
2888 (maybe_record_node): Record cxa_pure_virtual as the only possible
2889 target if there are not ohter candidates.
2890 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
2892 2016-01-19 Richard Biener <rguenther@suse.de>
2894 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
2895 (get_memory_order): Likewise.
2897 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
2899 * tree-vect-stmts.c (vectorizable_store): Check
2902 2016-01-19 David Malcolm <dmalcolm@redhat.com>
2905 * gcc.c (driver::decode_argv): Add call to
2906 init_opts_obstack before init_options_struct.
2907 * opts.c (init_opts_obstack): Remove idempotency.
2908 (init_options_struct): Replace call to init_opts_obstack
2909 with a gcc_assert to verify that it has already been called.
2910 * toplev.c (toplev::main): Add call to init_opts_obstack before
2911 calls to init_options_struct.
2912 (toplev::finalize): Move cleanup of opts_obstack next to
2913 cleanup of save_decoded_options, clearing the latter, and
2914 save_decoded_options_count.
2916 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2919 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
2920 attribute to unconditional. Remove %? from output template.
2922 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2923 Jiong Wang <jiong.wang@arm.com>
2925 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
2926 generated from different expand order.
2928 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2930 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
2931 Add support for CCMP costing.
2933 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2935 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
2936 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
2937 (fccmpe<mode>): Likewise.
2938 (fcmp): Rename to fcmp and globalize pattern.
2940 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
2941 (aarch64_gen_ccmp_next): Add FP support.
2943 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2945 * target.def (gen_ccmp_first): Update documentation.
2946 (gen_ccmp_next): Likewise.
2947 * doc/tm.texi (gen_ccmp_first): Update documentation.
2948 (gen_ccmp_next): Likewise.
2949 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
2950 expand_ccmp_expr_1. Improve comments.
2951 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
2952 (ccmp_ior<mode>): Remove pattern.
2953 (cmp<mode>): Remove expand.
2954 (cmp): Globalize pattern.
2955 (cstorecc4): Use cc_register.
2956 (mov<mode>cc): Remove ccmp_cc_register check.
2957 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
2958 Simplify after removal of CC_DNE/* modes.
2959 (aarch64_ccmp_mode_to_code): Remove.
2960 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
2961 In 'k' case use integer as condition.
2962 (aarch64_nzcv_codes): Remove inverted cases.
2963 (aarch64_code_to_ccmode): Remove.
2964 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
2965 comparison with CC register to be used in folowing CCMP/branch/CSEL.
2966 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
2967 pattern. Return the comparison with CC register. Invert conditions
2969 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
2970 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
2972 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2974 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
2975 instrumented_version.
2977 2016-01-19 Richard Biener <rguenther@suse.de>
2979 PR tree-optimization/69336
2980 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
2981 handled components with get_ref_base_and_extent.
2982 (equal_mem_array_ref_p): Adjust.
2984 2016-01-19 Jakub Jelinek <jakub@redhat.com>
2987 * shrink-wrap.c: Include valtrack.h.
2988 (move_insn_for_shrink_wrap): Add DEBUG argument. If
2989 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
2990 in between insn and where it will be moved to. Call
2991 dead_debug_insert_temp.
2992 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
2993 first and dead_debug_local_finish at the end.
2994 For uses and defs bitmap, handle all regs in between REGNO and
2995 END_REGNO, not just the first one.
2997 2016-01-19 Richard Biener <rguenther@suse.de>
2999 PR tree-optimization/69352
3000 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
3001 (equal_mem_array_ref_p): Constrain size and max size properly.
3002 Compare the reverse flag.
3004 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
3006 * ira.c (ira): Update regstat data if we deleted insns.
3008 2016-01-19 Jakub Jelinek <jakub@redhat.com>
3010 PR rtl-optimization/68955
3011 PR rtl-optimization/64557
3012 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
3013 here. Fix up formatting.
3014 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
3016 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3019 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
3020 assume that the node has body.
3021 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
3024 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3026 * lto-streamer-out.c (lto_output): Do not stream instrumentation
3029 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3031 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
3032 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
3034 2016-01-19 Martin Jambor <mjambor@suse.cz>
3035 Martin Liska <mliska@suse.cz>
3036 Michael Matz <matz@suse.de>
3038 * Makefile.in (OBJS): Add new source files.
3039 (GTFILES): Add hsa.c.
3040 * common.opt (disable_hsa): New variable.
3041 (-Whsa): New warning.
3042 * config.in (ENABLE_HSA): New.
3043 * configure.ac: Treat hsa differently from other accelerators.
3044 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
3046 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
3047 * doc/install.texi (Configuration): Document --with-hsa-runtime,
3048 --with-hsa-runtime-include, --with-hsa-runtime-lib and
3050 * doc/invoke.texi (-Whsa): Document.
3051 (hsa-gen-debug-stores): Likewise.
3052 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
3053 to invoke offload compiler for hsa acclerator.
3054 * opts.c (common_handle_option): Determine whether HSA offloading
3055 should be performed.
3056 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
3057 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
3058 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
3059 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
3060 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
3061 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
3062 GF_OMP_FOR_KIND_GRID_LOOP.
3063 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
3064 (pp_gimple_stmt_1): Likewise.
3065 * gimple-walk.c (walk_gimple_stmt): Likewise.
3066 * gimple.c (gimple_build_omp_grid_body): New function.
3067 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
3068 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
3069 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
3070 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
3071 GF_OMP_TEAMS_GRID_PHONY.
3072 (gimple_statement_omp_single_layout): Updated comments.
3073 (gimple_build_omp_grid_body): New function.
3074 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
3075 (gimple_omp_for_grid_phony): New function.
3076 (gimple_omp_for_set_grid_phony): Likewise.
3077 (gimple_omp_parallel_grid_phony): Likewise.
3078 (gimple_omp_parallel_set_grid_phony): Likewise.
3079 (gimple_omp_teams_grid_phony): Likewise.
3080 (gimple_omp_teams_set_grid_phony): Likewise.
3081 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
3082 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
3083 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
3084 (BUILT_IN_GOMP_TARGET): Updated type.
3085 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
3086 (adjust_for_condition): New function.
3087 (get_omp_for_step_from_incr): Likewise.
3088 (extract_omp_for_data): Moved parts to adjust_for_condition and
3089 get_omp_for_step_from_incr.
3090 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
3091 (fixup_child_record_type): Bail out if receiver_decl is NULL.
3092 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
3093 (scan_omp_parallel): Do not create child functions for phony
3095 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
3096 (scan_omp_1_op): Checking assert we are not remapping to
3097 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
3098 (parallel_needs_hsa_kernel_p): New function.
3099 (expand_parallel_call): Register apprpriate parallel child
3100 functions as HSA kernels.
3101 (grid_launch_attributes_trees): New type.
3102 (grid_attr_trees): New variable.
3103 (grid_create_kernel_launch_attr_types): New function.
3104 (grid_insert_store_range_dim): Likewise.
3105 (grid_get_kernel_launch_attributes): Likewise.
3106 (get_target_argument_identifier_1): Likewise.
3107 (get_target_argument_identifier): Likewise.
3108 (get_target_argument_value): Likewise.
3109 (push_target_argument_according_to_value): Likewise.
3110 (get_target_arguments): Likewise.
3111 (expand_omp_target): Call get_target_arguments instead of looking
3112 up for teams and thread limit.
3113 (grid_expand_omp_for_loop): New function.
3114 (grid_arg_decl_map): New type.
3115 (grid_remap_kernel_arg_accesses): New function.
3116 (grid_expand_target_kernel_body): New function.
3117 (expand_omp): Call it.
3118 (lower_omp_for): Do not emit phony constructs.
3119 (lower_omp_taskreg): Do not emit phony constructs but create for them
3120 a temporary variable receiver_decl.
3121 (lower_omp_taskreg): Do not emit phony constructs.
3122 (lower_omp_teams): Likewise.
3123 (lower_omp_grid_body): New function.
3124 (lower_omp_1): Call it.
3125 (grid_reg_assignment_to_local_var_p): New function.
3126 (grid_seq_only_contains_local_assignments): Likewise.
3127 (grid_find_single_omp_among_assignments_1): Likewise.
3128 (grid_find_single_omp_among_assignments): Likewise.
3129 (grid_find_ungridifiable_statement): Likewise.
3130 (grid_target_follows_gridifiable_pattern): Likewise.
3131 (grid_remap_prebody_decls): Likewise.
3132 (grid_copy_leading_local_assignments): Likewise.
3133 (grid_process_kernel_body_copy): Likewise.
3134 (grid_attempt_target_gridification): Likewise.
3135 (grid_gridify_all_targets_stmt): Likewise.
3136 (grid_gridify_all_targets): Likewise.
3137 (execute_lower_omp): Call grid_gridify_all_targets.
3138 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
3139 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
3140 (tree_omp_clause): Added union field dimension.
3141 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
3142 * tree.c (omp_clause_num_ops): Added number of arguments of
3143 OMP_CLAUSE__GRIDDIM_.
3144 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
3145 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
3146 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
3147 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
3148 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
3149 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
3150 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
3151 * tree-pass.h (make_pass_gen_hsail): Declare.
3152 (make_pass_ipa_hsa): Likewise.
3153 * ipa-hsa.c: New file.
3154 * lto-section-in.c (lto_section_name): Add hsa section name.
3155 * lto-streamer.h (lto_section_type): Add hsa section.
3156 * timevar.def (TV_IPA_HSA): New.
3157 * hsa-brig-format.h: New file.
3158 * hsa-brig.c: New file.
3159 * hsa-dump.c: Likewise.
3160 * hsa-gen.c: Likewise.
3163 * toplev.c (compile_file): Call hsa_output_brig.
3164 * hsa-regalloc.c: New file.
3166 2016-01-18 Jeff Law <law@redhat.com>
3168 PR tree-optimization/69320
3169 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
3170 ranged object, do nothing if the RHS constant is not [0..1].
3171 (optimize_stmt): Comparing a boolean ranged object against a
3172 constant outside [0..1] results in a compile-time constant.
3174 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
3177 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
3179 * doc/invoke.texi (Invoking GCC): Add new section to menu.
3180 (Option Summary): Update to reflect new section and moved options.
3181 (C++ Dialect Options): Move -fstats to new section.
3182 (Debugging Options): Move all dump, statistics, and other GCC
3183 developer options to new section. Rewrite section introduction
3184 and re-order remaining options to put the more basic ones first.
3185 (Optimization Options): Move -fira-verbose and -flto-report* to
3187 (Developer Options): New section incorporating moved options.
3188 * doc/cppopts.texi (-dM): Update cross-reference.
3190 2016-01-18 Richard Henderson <rth@redhat.com>
3193 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
3194 operands to pseudo only if CSE is expected. Split long immediate
3195 operands only after reload, and for the stack pointer.
3196 (*add<GPI>3_pluslong): Remove.
3197 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
3198 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
3199 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
3200 (*add<GPI>3 peepholes): New.
3201 (*add<GPI>3 splitters): New.
3202 * config/aarch64/constraints.md (Upl): New.
3203 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
3205 2016-01-18 Richard Biener <rguenther@suse.de>
3207 PR tree-optimization/69297
3208 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
3210 (vect_bb_vectorization_profitable_p): Clear visited flag again.
3212 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
3215 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
3216 of mixind vector and scalar types.
3217 (fold_relational_const): Add handling of vector
3218 comparison with boolean result.
3219 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
3220 comparison of vector operands with boolean result for EQ/NE only.
3221 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
3222 (verify_gimple_cond): Likewise.
3223 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
3226 2016-01-18 Joseph Myers <joseph@codesourcery.com>
3228 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
3231 2016-01-18 Richard Biener <rguenther@suse.de>
3234 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
3236 2016-01-18 Tom de Vries <tom@codesourcery.com>
3238 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
3240 2016-01-18 Tom de Vries <tom@codesourcery.com>
3242 * omp-low.c (set_oacc_fn_attrib): Make extern.
3243 * omp-low.h (set_oacc_fn_attrib): Declare.
3244 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
3245 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
3246 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
3247 Add and handle function parameter oacc_kernels_p.
3248 (find_reduc_addr, get_omp_data_i_param): New function.
3249 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
3250 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
3251 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
3252 Calculate dominance info. Skip loops that are not in a kernels region
3253 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
3254 (pass_parallelize_loops::execute): Call parallelize_loops with
3255 oacc_kernels_p argument.
3256 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
3257 New member function.
3258 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
3259 * passes.def: Add argument to pass_parallelize_loops instantation.
3261 2016-01-18 Tom de Vries <tom@codesourcery.com>
3263 * tree-parloops.c (pass_parallelize_loops::execute): Allow
3264 pass_parallelize_loops to be run outside the loop pipeline.
3266 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3268 * tree-scalar-evolution.c (follow_copies_to_constant): New.
3269 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
3271 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3274 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
3275 using get_ref_base_and_extent.
3276 (equal_mem_array_ref_p): New.
3277 (hashable_expr_equal_p): Add call to previous.
3279 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
3282 * tree-sra.c (disqualified_constants, constant_decl_p): New.
3283 (sra_initialize): Allocate disqualified_constants.
3284 (sra_deinitialize): Free disqualified_constants.
3285 (disqualify_candidate): Update disqualified_constants when appropriate.
3286 (create_access): Scan for constant-pool entries as we go along.
3287 (scalarizable_type_p): Add check against type_contains_placeholder_p.
3288 (maybe_add_sra_candidate): Allow constant-pool entries.
3289 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
3290 (initialize_constant_pool_replacements): New.
3291 (sra_modify_assign): Avoid mangling assignments created by previous,
3292 and don't generate writes into constant pool.
3293 (sra_modify_function_body): Call initialize_constant_pool_replacements.
3295 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3297 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
3299 (scalar_chain::convert_op): Likewise.
3300 * config/i386/i386.md (*andndi3_doubleword): New.
3302 2016-01-18 Richard Biener <rguenther@suse.de>
3304 PR tree-optimization/69170
3305 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
3306 building a vector from scalar results of a pattern stmt.
3308 2016-01-18 Jakub Jelinek <jakub@redhat.com>
3310 * haifa-sched.c (autopref_multipass_init): Work around
3311 -Wmaybe-uninitialized warning.
3313 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
3315 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
3316 against the constant 0.
3318 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3320 PR tree-optimization/68799
3321 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
3322 look up phi candidates in the statement-candidate map.
3323 (phi_add_costs): Likewise.
3324 (record_phi_increments): Likewise.
3325 (phi_incr_cost): Likewise.
3326 (ncd_with_phi): Likewise.
3327 (all_phi_incrs_profitable): Likewise.
3329 2016-01-17 Jakub Jelinek <jakub@redhat.com>
3331 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
3332 -Wmaybe-uninitialized warning.
3334 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
3336 * doc/invoke.texi (Invoking GCC): Add new section to menu.
3337 (Option Summary): Update to reflect new section and moved options.
3338 (C++ Dialect Options): Move -fvtable-verify and related options.
3339 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
3340 and profiling-related options.
3341 (Optimization Options): Move profile generation options and
3342 -fstack-protector and related options.
3343 (Instrumentation Options): New section incorporating moved options.
3344 (Code Generation Options): Move -finstrument-functions and
3345 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
3347 2016-01-16 Tom de Vries <tom@codesourcery.com>
3349 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
3351 2016-01-16 Tom de Vries <tom@codesourcery.com>
3353 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
3355 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
3357 * hash-table.h (hash_table::empty): Turn into an inline wrapper
3358 that checks whether the table is already empty. Rename the
3359 original implementation to...
3360 (hash_table::empty_slot): ...this new private function.
3362 2016-01-15 David Malcolm <dmalcolm@redhat.com>
3365 * diagnostic-show-locus.c (layout::print_source_line): Move x
3366 offset of line until after call to
3367 get_line_width_without_trailing_whitespace.
3369 2016-01-15 Jeff Law <law@redhat.com>
3371 PR tree-optimization/69270
3372 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
3373 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
3374 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
3375 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
3376 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
3377 ssa_name_has_boolean_range and constant_boolean_node.
3379 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
3381 PR rtl-optimization/69030
3382 * lra-spills.c (remove_pseudos): Check nrefs and make the function
3384 (spill_pseudos): Delete debug insn for dead pseudo.
3385 (lra_spill): Initiate spill_hard_reg and slots memory separately.
3387 2016-01-15 Jiong Wang <jiong.wang@arm.com>
3389 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
3391 (TYPES_UNOPUS): Likewise.
3392 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
3393 builtin type, from UNOP to UNOPUS.
3394 (lbtruncuv4sf): Likewise.
3395 (lbtruncuv2df): Likewise.
3396 (lrounduv2sf): Likewise.
3397 (lrounduv4sf): Likewise.
3398 (lrounduv2df): Likewise.
3399 (lroundusf): Likewise.
3400 (lroundusf): Likewise.
3401 (lceiluv2sf): Likewise.
3402 (lceiluv4sf): Likewise.
3403 (lceiluv2df): Likewise.
3404 (lceilusf): Likewise.
3405 (lceiludf): Likewise.
3406 (lflooruv2sf): Likewise.
3407 (lflooruv4sf): Likewise.
3408 (lflooruv2df): Likewise.
3409 (lfloorusf): Likewise.
3410 (lfloorudf): Likewise.
3411 (lfrintnuv2sf): Likewise.
3412 (lfrintnuv4sf): Likewise.
3413 (lfrintnuv2df): Likewise.
3414 (lfrintnusf): Likewise.
3415 (lfrintnudf): Likewise.
3416 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
3418 (vcvtq_u32_f32): Likewise.
3419 (vcvtq_u64_f64): Likewise.
3420 (vcvta_u32_f32): Likewise.
3421 (vcvtaq_u32_f32): Likewise.
3422 (vcvtaq_u64_f64): Likewise.
3423 (vcvtm_u32_f32): Likewise.
3424 (vcvtmq_u32_f32): Likewise.
3425 (vcvtmq_u64_f64): Likewise.
3426 (vcvtn_u32_f32): Likwise.
3427 (vcvtnq_u32_f32): Likewise.
3428 (vcvtnq_u64_f64): Likewise.
3429 (vcvtp_u32_f32): Likewise.
3430 (vcvtpq_u32_f32): Likewise.
3431 (vcvtpq_u64_f64): Likewise.
3432 (vcvtmd_u64_f64): Likewise.
3433 (vcvtms_u32_f32): Likewise.
3434 (vcvtad_u64_f64): Likewise.
3435 (vcvtas_u32_f32): Likewise.
3436 (vcvtnd_u64_f64): Likewise.
3437 (vcvtns_u32_f32): Likewise.
3438 (vcvtpd_u64_f64): Likewise.
3439 (vcvtps_u32_f32): Likewise.
3441 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3443 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
3444 CSEL of zero_extended registers.
3446 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3448 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
3449 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
3451 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3453 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
3454 false when argument string is not found in the attributes table
3457 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
3460 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
3461 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
3462 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
3465 2016-01-15 Richard Biener <rguenther@suse.de>
3467 PR tree-optimization/66856
3468 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
3469 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
3470 (vect_create_new_slp_node): Increment stmt reference count.
3471 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
3472 an SLP tree before swapping operands.
3473 (vect_build_slp_tree): Likewise.
3474 (destroy_bb_vec_info): Free stmt info after SLP instances.
3475 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
3476 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
3477 (STMT_VINFO_NUM_SLP_USES): New macro.
3479 2016-01-15 Richard Biener <rguenther@suse.de>
3482 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
3483 (add_linkage_name): ... here.
3484 (gen_typedef_die): Use add_linkage_name_raw instead of
3485 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
3488 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
3490 * gimplify.c (oacc_default_clause): Decode reference and pointer
3491 types for both kernels and parallel regions.
3493 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
3496 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
3498 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
3500 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
3501 (convert_scalars_to_vector): Likewise.
3503 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
3505 * doc/extend.texi (Type Traits): Fix grammar.
3507 2016-01-15 Martin Jambor <mjambor@suse.cz>
3509 * tree-inline.c (remap_decl): Use existing dclarations if
3510 remapping a type and prevent_decl_creation_for_types.
3511 (replace_locals_stmt): Do an initial remapping of non-VLA typed
3512 decls first. Do real remapping with
3513 prevent_decl_creation_for_types set.
3514 * tree-inline.h (copy_body_data): New field
3515 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
3518 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3520 * config/s390/s390.opt (mmvcle): More verbose help text.
3522 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3524 * config/s390/s390.opt: Add period to -mzvector option text.
3526 2016-01-15 Richard Biener <rguenther@suse.de>
3528 PR tree-optimization/68961
3529 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
3530 of invariants in stores again.
3532 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
3534 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
3536 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
3538 * config/i386/i386.c (ix86_expand_branch): Don't split
3539 DI mode xor instruction to SI mode.
3541 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
3544 * ipa-icf.c (sem_function::merge): Virtual functions may become
3545 reachable even if they address is not taken and there are no
3548 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
3550 * lto-streamer-out.c (subtract_estimated_size): New function.
3551 (get_symbol_initial_value): Use it.
3553 2016-01-15 Christian Bruel <christian.bruel@st.com>
3556 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
3557 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
3558 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
3559 use add_builtin_function_ext_scope instead of add_builtin_function.
3560 (neon_set_p, neon_crypto_set_p): Remove.
3561 (arm_init_builtins): Always call arm_init_neon_builtins and
3562 arm_init_crypto_builtins.
3563 (arm_expand_builtin): Check that builtins are allowed for the arch.
3564 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
3565 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
3566 arm_init_neon_builtins call.
3568 2016-01-15 Richard Biener <rguenther@suse.de>
3570 PR tree-optimization/69117
3571 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
3572 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
3573 of the leader conservatively.
3574 (free_scc_vn): Restore original SSA name infos.
3576 2016-01-14 Jeff Law <law@redhat.com>
3578 PR tree-optimization/69270
3579 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
3580 single bit of precision, verify it's also unsigned.
3581 (record_edge_info): Use constant_boolean_node rather than fold_convert
3582 to convert boolean_true/boolean_false to the right type.
3584 2016-01-14 Richard Henderson <rth@redhat.com>
3587 * loop-doloop.c (record_reg_sets): New.
3588 (doloop_optimize): Reject the transform if the sequence
3589 clobbers registers live at the end of the loop block.
3590 (doloop_optimize_loops): Enable df_live if needed.
3592 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3594 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
3595 * gcc/config/rs6000/rs6000.c: Likewise.
3596 * gcc/config/rs6000/rs6000.h: Likewise.
3597 * gcc/config/rs6000/rs6000.md: Likewise.
3598 * gcc/doc/extend.texi: Likewsie.
3600 2016-01-14 Jeff Law <law@redhat.com>
3602 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
3605 2016-01-14 Richard Henderson <rth@redhat.com>
3609 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
3610 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
3611 instead of builtin_decl_declared_p to test for declaration.
3613 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
3615 * doc/loop.texi (Loop Analysis and Representation): Document
3616 loop_depth function.
3618 2016-01-14 Tom de Vries <tom@codesourcery.com>
3620 PR tree-optimization/68773
3621 * omp-low.c (expand_omp_target): Don't set force_output.
3622 * varpool.c (varpool_node::get_create): Same.
3623 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
3624 offload_funcs with force_output.
3626 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3629 * lra-eliminations.c (move_plus_up): Don't change anything if either
3630 the outer or inner subreg mode is not MODE_INT.
3631 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
3632 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
3634 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
3636 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
3637 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
3638 reduc_uplus_@var{m}): Remove.
3639 * expr.c (expand_expr_real_2): Remove expansion path for
3640 reduc_[us](min|max|plus) optabs.
3641 * optabs-tree.c (scalar_reduc_to_vector): Remove.
3642 * optabs-tree.h (scalar_reduc_to_vector): Remove.
3643 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
3644 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
3645 * tree-vect-loop.c (vectorizable_reduction): Remove test for
3646 reduc_[us](min|max|plus) optabs.
3648 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
3650 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
3651 (reduc_plus_scal_v2sf): New.
3652 (reduc_smax_v2sf): Rename to...
3653 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
3654 (reduc_smin_v2sf): Rename to...
3655 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
3657 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
3659 * alias.c (compare_base_symbol_refs): New function.
3660 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
3663 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3666 PR tree-optimization/69155
3667 * tree-complex.c: Include cfganal.h.
3668 (phis_to_revisit): New variable.
3669 (extract_component): Add phiarg_p argument. Assert that returned
3670 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
3671 (update_phi_components): Partly rewrite to use loop over real/imag
3672 components instead of code duplication. If extract_component returns
3673 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
3674 create_tmp_reg into the PHI node instead, and mention the phi triplet
3676 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
3677 in phis_to_revisit at the end.
3679 2016-01-14 Richard Biener <rguenther@suse.de>
3681 PR tree-optimization/68060
3682 * tree-vect-loop.c (vect_is_simple_reduction): Check the
3683 outer loop reduction is only used in the inner loop before
3684 detecting a double reduction.
3686 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3689 * combine.c (expand_field_assignment): Punt if compute_mode is
3690 unsupported scalar mode.
3692 2016-01-14 Richard Biener <rguenther@suse.de>
3694 PR tree-optimization/66856
3695 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
3696 SLP node only if it built successfully.
3697 (vect_analyze_slp_instance): Adjust.
3699 2016-01-14 Jeff Law <law@redhat.com>
3701 PR tree-optimization/69270
3702 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
3703 (record_edge_info): Use it. Convert boolean_{true,false}_node
3706 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
3709 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
3710 use block_ultimate_origin
3711 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
3713 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
3715 * doc/invoke.texi (Submodel Options): Rename section to
3716 "Machine-Dependent Options" to better reflect its content.
3717 Rewrite introductory text to remove archaic CPU names.
3720 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
3722 * doc/invoke.texi (Code Gen Options): Move section up in file,
3723 before target-specific options. Update menu and option summary
3724 to reflect the new section ordering.
3726 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
3728 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
3729 (C++ Dialect Options): Add cross-reference to -std option.
3730 * doc/standards.texi (C++ Language): Document C++14 support.
3732 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3734 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
3735 for pack/unpack functions for __ibm128.
3736 (PACK_IF): Likewise.
3737 (UNPACK_IF): Likewise.
3739 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
3740 support for __ibm128 pack/unpack functions.
3741 (rs6000_invalid_builtin): Likewise.
3742 (rs6000_init_builtins): Likewise.
3743 (rs6000_opt_masks): Likewise.
3745 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
3746 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
3748 (RS6000_BTM_COMMON): Likewise.
3750 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
3751 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
3752 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
3753 128-bit floating point. Add support for the double values to be
3754 in Altivec registers for TF/IF packing and unpacking, but restrict
3755 TD packing sub-fields to be FPR registers. Don't allow overlapped
3756 register support for packing. Allow pack inputs to be memory
3757 locations. Don't build generator functions for unpack<mode>_dm
3758 and unpack<mode>_nodm.
3759 (unpack<mode>_dm): Likewise.
3760 (unpack<mode>_nodm): Likewise.
3761 (pack<mode>): Likewise.
3763 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
3764 built-in functions to pack/unpack explicit __ibm128 values.
3765 (__builtin_unpack_ibm128): Likewise.
3767 * doc/extend.texi (PowerPC Built-in Functions): Document
3768 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
3770 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
3773 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
3774 Add new arg loc and pass it down as context.
3775 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
3776 to the location to use for the warning.
3777 (check_function_arguments): New arg loc. All callers changed. Pass
3778 it to check_function_nonnull.
3779 * c-common.h (check_function_arguments): Adjust declaration.
3781 2016-01-13 Jakub Jelinek <jakub@redhat.com>
3783 PR tree-optimization/69156
3784 * gimple.c (validate_type): Removed.
3785 (gimple_builtin_call_types_compatible_p): Use
3786 useless_type_conversion_p instead of validate_type.
3787 * value-prof.c (gimple_stringop_fixed_value): Fold
3788 icall_size to correct type.
3790 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
3792 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
3795 2016-01-13 Richard Henderson <rth@redhat.com>
3798 * target.def (builtin_tm_load, builtin_tm_store): Remove.
3799 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
3800 (ix86_builtin_tm_store): Remove.
3801 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
3802 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
3803 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
3804 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
3805 * doc/tm.texi: Rebuild.
3807 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
3808 (BUILT_IN_TM_MEMCPY_RTWN): New.
3809 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
3810 fallback from vector to integer helpers.
3811 (build_tm_load): Handle vector types directly, instead of
3813 (build_tm_store): Likewise.
3814 (expand_assign_tm): Prepare for register types not handled by
3815 the above. Copy them to memory and use memcpy.
3816 * tree.c (tm_define_builtin): New.
3817 (find_tm_vector_type): New.
3818 (build_tm_vector_builtins): New.
3819 (build_common_builtin_nodes): Call it.
3821 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
3823 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
3824 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
3826 2016-01-13 Tom de Vries <tom@codesourcery.com>
3828 PR tree-optimization/69169
3829 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
3830 handled_struct_type param.
3831 (create_variable_info_for, intra_create_variable_infos): Call
3832 create_variable_info_for_1 with extra arg.
3834 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
3836 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
3837 and "armv8.1-a+crc" entries.
3839 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
3842 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
3843 Change first operand predicate from register_or_constm1_operand
3844 to register_operand.
3845 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
3846 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
3847 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
3848 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
3849 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
3850 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
3851 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
3852 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
3853 comparison with constm1_rtx from vec_prefetch_gen part.
3855 2016-01-13 Richard Biener <rguenther@suse.de>
3857 PR tree-optimization/69013
3858 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
3859 Exchange assert for a test.
3861 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3864 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
3866 2016-01-13 Richard Biener <rguenther@suse.de>
3868 PR tree-optimization/69242
3869 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
3870 assert with a check.
3872 2016-01-13 Richard Biener <rguenther@suse.de>
3874 PR tree-optimization/69186
3875 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3876 Properly guard vect_update_misalignment_for_peel call.
3878 2016-01-12 Jeff Law <law@redhat.com>
3880 PR tree-optimization/pr67755
3881 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
3882 "need_profile_correction".
3883 (thread_block_1): Initialize new field to false by default. If we
3884 have multiple thread paths through a common joiner to different
3885 final targets, then set new field to true.
3886 (compute_path_counts): Only do count adjustment when it's really
3889 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
3891 * doc/invoke.texi (Spec Files): Move section down in file, past
3892 all command-line option descriptions.
3894 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3897 * doc/gty.texi: Remove documentation of mark_hook.
3898 * gengtype.c (struct write_types_data): Remove code to support
3899 mark_hook attribute.
3900 (walk_type): Likewise.
3901 (write_func_for_structure): Likewise.
3903 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
3905 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
3906 Directory Options, and -specs= to Overall Options.
3907 (Overall Options): Adjust similarly. Reorder to group related
3908 options together. Make -specs= cross-reference the spec file details.
3909 (Directory Options): Adjust similarly.
3911 2016-01-12 Jeff Law <law@redhat.com>
3913 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
3915 2016-01-12 Olivier Hainque <hainque@adacore.com>
3917 * gcc.c (spec_undefvar_allowed): New global.
3918 (process_command): Set to true when running for --version or --help,
3920 (getenv_spec_function): When the variable is not defined, use the
3921 variable name as the variable value if we're allowed not to issue
3924 2016-01-12 Bin Cheng <bin.cheng@arm.com>
3926 PR tree-optimization/68911
3927 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
3928 information computed for expression "init + nit * step".
3930 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
3932 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
3933 about name of GCC executable. Remove deleted node from menu.
3934 (Directory Options) <-B>: Remove cross-reference to deleted node.
3935 (Target Options): Delete section.
3937 2016-01-12 Christian Bruel <christian.bruel@st.com>
3940 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
3941 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
3943 2016-01-12 Jakub Jelinek <jakub@redhat.com>
3946 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
3947 aligned_mem is properly set for AVX512-VL floating point masked
3951 * ifcvt.c (cond_exec_process_if_block): When removing the last
3952 insn from then_bb, remove also any possible barriers that follow it.
3954 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
3958 * config/i386/iamcu.h (SIZE_TYPE): New macro.
3959 (PTRDIFF_TYPE): Likewise.
3960 (WCHAR_TYPE): Likewise.
3961 (WCHAR_TYPE_SIZE): Likewise.
3962 (STDINT_LONG32): Likewise.
3964 2016-01-12 Richard Biener <rguenther@suse.de>
3966 PR tree-optimization/69053
3967 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
3968 convert initial value for cond reductions.
3970 2016-01-12 Richard Biener <rguenther@suse.de>
3972 PR tree-optimization/69007
3973 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
3974 widen_sum after dot_prod and sad.
3976 2016-01-12 Richard Biener <rguenther@suse.de>
3978 PR tree-optimization/69168
3979 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
3980 pattern stmt SLP type.
3981 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
3982 end up unused so cope with that case.
3984 2016-01-12 Richard Biener <rguenther@suse.de>
3986 PR tree-optimization/69157
3987 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3988 stmts def type only during analyze phase.
3989 (vectorizable_call): Likewise.
3990 (vectorizable_simd_clone_call): Likewise.
3991 (vectorizable_conversion): Likewise.
3992 (vectorizable_assignment): Likewise.
3993 (vectorizable_shift): Likewise.
3994 (vectorizable_operation): Likewise.
3995 (vectorizable_store): Likewise.
3996 (vectorizable_load): Likewise.
3998 2016-01-12 Richard Biener <rguenther@suse.de>
4000 PR tree-optimization/69174
4001 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
4003 (vectorizable_load): Properly compute the number of loads needed
4004 for permuted strided SLP loads and do not spuriously assign
4005 to SLP_TREE_VEC_STMTS.
4007 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
4009 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
4010 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
4011 (MD_EXEC_PREFIX): Remove.
4012 (MD_STARTFILE_PREFIX) Removee.
4013 (FILE_NAME_ABSOLUTE_P): Remove.
4014 (CPP_SPEC): Do not read macros from sys/version.h.
4015 (LINK_COMMAND_SPEC): Remove.
4016 (LOCAL_INCLUDE_DIR): Remove.
4017 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
4018 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
4019 (POST_LINK_SPEC): Define to invoke stubify after linker
4020 (LIBSTDCXX): Remove define
4021 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
4022 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
4023 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
4024 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
4025 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
4026 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
4027 (i386_djgpp_asm_named_section): Add propotype of new procedure
4029 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
4030 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
4031 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
4032 in config/i386/djgpp.h).
4033 (STANDARD_STARTFILE_PREFIX_2): Define identical to
4034 STANDARD_STARTFILE_PREFIX_1.
4035 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
4036 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
4037 installation errors.
4038 (MAX_OFILE_ALIGNMENT): Define to 128.
4039 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
4041 * config/i386/djgpp.c: New file. Add implementation of
4042 i386_djgpp_asm_named_section.
4044 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
4046 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
4047 Add rule for building djgpp.o.
4049 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4051 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
4052 (rtx_is_swappable_p): Reductions are swappable.
4053 (insn_is_swappable_p): V2DF reductions are swappable.
4055 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
4057 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
4058 reloads for other unsupported memory operands.
4060 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4061 Jim Wilson <jim.wilson@linaro.org>
4064 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
4065 copy_to_mode_reg instead of force_reg.
4067 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
4070 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
4071 TARGET_80387 is true.
4073 2016-01-11 Jakub Jelinek <jakub@redhat.com>
4076 * lra-eliminations.c (move_plus_up): Only move plus up
4077 if subreg of the constant can be simplified into constant
4078 and use the simplified subreg of the constant instead of
4079 the original constant.
4081 * fold-const.c (fold_convertible_p): Don't return true
4082 for conversion of VECTOR_TYPE to same sized integral type.
4083 (fold_convert_loc): Fix up formatting. Fold conversion of
4084 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
4085 instead of NOP_EXPR.
4087 PR tree-optimization/69214
4088 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
4089 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4092 PR tree-optimization/69207
4093 * tree-vect-slp.c (vect_get_constant_vectors): For
4094 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
4095 fold_convertible_p to vector_type's element type, and always
4096 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
4098 2016-01-11 Richard Biener <rguenther@suse.de>
4100 PR tree-optimization/69173
4101 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
4102 fixup the cycle if all stmts are in a pattern.
4104 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
4107 * alias.c (base_alias_check): Move check for addresses with
4108 alignment ANDs before the call for compare_base_decls.
4109 (memrefs_conflict_p): Return -1 for different decls
4110 that went through alignment adjustments.
4112 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4114 PR rtl-optimization/68796
4115 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
4116 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
4117 and QImode comparisons against zero with CC_NZmode.
4118 * config/aarch64/iterators.md (short_mask): New mode_attr.
4120 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
4122 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
4123 (<avx512>_store<mode>_mask): Likewise.
4125 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
4126 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4128 PR rtl-optimization/68841
4129 * ifcvt.c (struct noce_if_info): Add orig_x field.
4130 (bbs_ok_for_cmove_arith): Add to_rename parameter.
4131 Don't record conflicts on to_rename if it's present.
4132 Allow memory destinations in sets.
4133 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
4134 blocks, passing orig_x to the checks.
4135 (noce_process_if_block): Set if_info->orig_x appropriately.
4137 2016-01-11 Tom de Vries <tom@codesourcery.com>
4139 PR tree-optimization/69069
4140 * tree-parloops.c (create_parallel_loop): Add missing phi args.
4142 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
4144 PR rtl-optimization/68920
4145 * config/i386/i386.c (ix86_option_override_internal): Restrict number
4146 of conditional moves for RTL if-conversion to 1 for
4147 TARGET_ONE_IF_CONV_INSN.
4148 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
4149 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
4150 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
4151 parameter to restirct number of conditional moves for
4153 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
4154 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
4157 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
4160 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
4161 onepart vars. Fix typo in comment. Fix reversed condition in
4163 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
4166 * var-tracking.c (dump_onepart_variable_differences): New.
4167 (dataflow_set_different): If a detailed dump is requested,
4168 delay early returns and dump differences between onepart
4169 variables present before and after, and added variables.
4171 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
4174 * expr.c (expand_expr_real_1): For boolean vector constants
4175 with a scalar mode use const_scalar_mask_from_tree.
4176 (const_scalar_mask_from_tree): New.
4177 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
4178 assigned to a mask type to handle constants.
4180 2016-01-11 Martin Jambor <mjambor@suse.cz>
4183 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
4184 useless parameters if we cannot change function signature.
4186 2016-01-11 Martin Jambor <mjambor@suse.cz>
4189 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
4192 2016-01-11 Tom de Vries <tom@codesourcery.com>
4194 PR tree-optimization/69109
4195 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
4198 2016-01-11 Tom de Vries <tom@codesourcery.com>
4200 PR tree-optimization/69108
4201 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
4202 res is not used in a phi.
4204 2016-01-11 Yury Gribov <y.gribov@samsung.com>
4207 * common.opt (frandom-seed): Fix parameter name.
4208 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
4210 2016-01-11 Tom de Vries <tom@codesourcery.com>
4212 PR tree-optimization/69058
4213 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
4216 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
4218 * config/arc/arc.opt (mdiv-rem): Add period to the end.
4219 (mcode-density): Likewise.
4221 2016-01-10 Tom de Vries <tom@codesourcery.com>
4223 PR tree-optimization/69062
4224 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
4225 (parallelize_loops): Don't paralelize loop that has phi with address
4228 2016-01-10 Tom de Vries <tom@codesourcery.com>
4230 PR tree-optimization/69039
4231 * tree-parloops.c (try_create_reduction_list): Only allow single exit
4234 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
4237 * match.pd: Require target has function_c99_misc before doing
4238 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
4240 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
4242 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
4244 * configure: Regenerate.
4246 2016-01-09 Jakub Jelinek <jakub@redhat.com>
4249 PR tree-optimization/69097
4250 * fold-const.h (expr_not_equal_to): New prototype.
4251 * fold-const.c: Include stringpool.h and tree-ssanames.h.
4252 (expr_not_equal_to): New function.
4253 * match.pd (X % -Y is the same as X % Y): Don't optimize
4254 unless X is known not to be equal to minimum or Y is known
4255 not to be equal to -1.
4256 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
4257 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
4258 (simplify_stmt_using_ranges): Adjust caller.
4259 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
4260 substitute_and_fold.
4262 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
4264 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
4267 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4269 PR tree-optimization/69167
4270 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
4271 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
4273 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
4275 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
4276 Richard Biener <rguenther@suse.de>
4278 PR tree-optimization/68707
4279 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
4280 instances that can be handled via vect_load_lanes.
4282 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
4284 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
4285 if we can't determine address equivalence.
4286 * alias.c (compare_base_decl): Update for changed return value of
4287 symtab_node::equal_address_to.
4289 2016-01-08 Jason Merrill <jason@redhat.com>
4293 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
4294 * expr.c (store_field): Not here.
4295 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
4296 call with TREE_ADDRESSABLE type.
4297 * tree-cfg.c (verify_gimple_call): Adjust.
4299 2016-01-08 Olivier Hainque <hainque@adacore.com>
4301 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
4304 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
4306 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
4307 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
4308 (reduc_smin_v2sf): Rename to...
4309 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
4310 (reduc_splus_v2sf): Rename to...
4311 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
4313 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4315 PR tree-optimization/69162
4316 * gimplify.c (gimplify_va_arg_expr): Encode original type of
4317 valist argument in another argument.
4318 (gimplify_modify_expr): Adjust for the above change. Cleanup.
4319 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
4320 to determine the va_list type, build a MEM_REF instead of
4321 build_fold_indirect_ref.
4323 PR tree-optimization/69172
4324 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
4327 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
4329 PR tree-optimization/67781
4330 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
4331 and cmpnop in two steps: first the ones not accessed in original
4332 gimple expression in a endian independent way and then the ones not
4333 accessed in the final result in an endian-specific way.
4335 2016-01-08 Jakub Jelinek <jakub@redhat.com>
4337 PR tree-optimization/69083
4338 * tree-vect-slp.c (vect_get_constant_vectors): For
4339 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
4340 element type. If op is fold_convertible_p to vector_type's element
4341 type, use NOP_EXPR instead of VCE.
4343 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
4345 PR rtl-optimization/67778
4346 PR rtl-optimization/68634
4347 PR rtl-optimization/68909
4348 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
4349 block from the stack until done with it. Remove a superfluous
4350 bitmap set. Remove a superfluous bitmap test.
4352 2016-01-07 Martin Sebor <msebor@redhat.com>
4355 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
4356 constraint on the type of arguments.
4358 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
4360 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
4361 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
4362 unaligned_access on the gcc_options set.
4363 * config/arm/arm.c (arm_option_override_internal): Use
4364 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
4366 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
4369 * config/i386/i386.c (ix86_frame_pointer_required): Enable
4370 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
4372 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
4375 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
4378 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
4379 depending on frame_pointer_needed before remaining integer and SSE
4380 registers are saved.
4382 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
4385 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
4387 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4390 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
4391 Use the "xBm" constraint.
4392 (float<sseintvecmodelower><mode>2<mask_name><round_name):
4394 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
4395 (sse_cvtsi2ssq<round_name>): Likewise.
4396 (sse_cvtss2si<round_name>): Likewise.
4397 (sse_cvtss2siq<round_name>): Likewise.
4398 (sse2_cvtsi2sdq<round_name>): Likewise.
4399 (sse2_cvtsd2si<round_name>): Likewise.
4400 (sse2_cvtsd2siq<round_name>): Likewise.
4401 * config/i386/subst.md (round_nimm_scalar_predicate): New
4404 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
4407 * varasm.c (make_decl_rtl): Mark invalid register vars as
4410 PR rtl-optimization/66206
4411 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
4412 All callers changed.
4414 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4416 PR tree-optimization/69141
4417 * tree-ssa-pre.c: Include langhooks.h.
4418 (eliminate_dom_walker::before_dom_children): Use
4419 lang_hooks.decl_printable_name instead of
4420 cgraph_node::get ()->name ().
4423 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
4424 it and DECL_ALIGN too.
4426 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
4428 * config/mips/mips-ftypes.def: Sort to lexicographical order.
4430 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
4433 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
4434 depending on frame_pointer_needed before remaining integer and SSE
4435 registers are saved.
4437 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4439 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
4440 mode iterator with VSX_M2.
4441 (*p9_vecstore_<mode>): Likewise.
4442 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
4443 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
4444 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
4445 (define_split for VSX_LE128 stores): Likewise.
4446 (define_peephole2 for TImode LE swaps): Likewise.
4447 (define_split for VSX_LE128 post-reload stores): Likewise.
4449 2016-01-06 Marek Polacek <polacek@redhat.com>
4452 * convert.c (convert_to_integer_1): Adjust call to
4453 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
4454 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
4455 EXPR instead of ARG.
4456 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
4458 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4461 * doc/extend.texi (RL78 Variable Attributes): New section.
4463 2016-01-05 Marek Polacek <polacek@redhat.com>
4466 * builtins.c (get_memmodel): Use expansion point location rather than
4467 the input location. Call warning_at rather than warning.
4468 (expand_builtin_atomic_compare_exchange): Likewise.
4469 (expand_builtin_atomic_load): Likewise.
4470 (expand_builtin_atomic_store): Likewise.
4471 (expand_builtin_atomic_clear): Likewise.
4473 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
4476 * config/i386/i386.c (ix86_expand_vector_logical_operator):
4477 Replace nonimmediate_operand with vector_operand.
4478 * config/i386/predicates.md (vector_operand): New predicate.
4479 (general_vector_operand): Replace nonimmediate_operand with
4481 * config/i386/sse.md: Replace nonimmediate_operand with
4482 vector_operand and m constraint with Bm constraint on SSE
4483 patterns with 16-byte memory operand.
4484 * config/i386/subst.md (round_nimm_predicate): Replace
4485 nonimmediate_operand with vector_operand.
4486 (round_saeonly_nimm_predicate): Likewise.
4487 (round_saeonly_nimm_scalar_predicate): New.
4489 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
4492 * config/i386/constraints.md (Bm): New constraint.
4493 * config/i386/predicates.md (vector_memory_operand): New
4495 * config/i386/sse.md: Replace xm with xBm in plusminus and
4498 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4501 * doc/extend.texi (V850 Function Attributes): New section.
4502 (V850 Variable Attributes): New section.
4504 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4507 * doc/extend.texi (MicroBlaze Function Attributes): Document
4508 interrupt_handler and fast_interrupt attributes.
4510 2016-01-05 Sergei Trofimovich <siarheit@google.com>
4513 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
4514 for local symbolic operands.
4515 * config/ia64/predicates.md (local_symbolic_operand64): New
4518 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4520 PR rtl-optimization/68651
4521 * combine.c (combine_simplify_rtx): Canonicalize x + x into
4524 2016-01-05 Nathan Sidwell <nathan@acm.org>
4526 * alias.c (compare_base_decls): Use symtab_node::get.
4528 2016-01-05 Nick Clifton <nickc@redhat.com>
4531 * ira-costs.c (copy_cost): Initialise the t_icode field of the
4532 secondary_reload_info structure.
4535 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
4536 decls if weak support is available.
4538 2016-01-04 Martin Sebor <msebor@redhat.com>
4540 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
4542 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
4544 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4545 OPTION_MASK_P9_DFORM.
4547 * config/rs6000/constraints.md (wo constraint): New constraint for
4550 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
4552 (rs6000_init_hard_regno_mode_ok): Likewise.
4554 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
4557 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
4558 expanders not to have constraints. Add support for ISA 3.0 xxperm
4559 instruction. Add support for fusing xxlor with xxperm.
4560 (altivec_vperm_<mode>_internal): Likewise.
4561 (altivec_vperm_v8hiv16qi): Likewise.
4562 (altivec_vperm_<mode>v16q): Likewise.
4563 (altivec_vperm_<mode>_uns): Likewise.
4564 (vperm_v8hiv4si): Likewise.
4565 (vperm_v16qiv8hi): Likewise.
4567 * doc/md.texi (RS/6000 constraints): Document wo constraint.
4569 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4571 Update copyright years.
4573 * gcc.c (process_command): Update copyright notice dates.
4574 * gcov-dump.c (print_version): Ditto.
4575 * gcov.c (print_version): Ditto.
4576 * gcov-tool.c (print_version): Ditto.
4577 * gengtype.c (create_file): Ditto.
4578 * doc/cpp.texi: Bump @copying's copyright year.
4579 * doc/cppinternals.texi: Ditto.
4580 * doc/gcc.texi: Ditto.
4581 * doc/gccint.texi: Ditto.
4582 * doc/gcov.texi: Ditto.
4583 * doc/install.texi: Ditto.
4584 * doc/invoke.texi: Ditto.
4586 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4588 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
4589 modes larger than TImode as TImode if NEON is not enabled.
4591 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4594 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
4595 mode for %f0-%f31 only if TARGET_FPU.
4597 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4600 * config/sparc/sparc.c (scan_record_type): Take into account subfields
4601 to compute the PACKED_P predicate.
4602 (function_arg_record_value): Minor tweaks.
4604 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4606 * doc/install.texi (--with-multilib-list): Describe the meaning of the
4607 option for arm*-*-* targets.
4609 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
4611 * doc/extend.texi (Common Function Attributes): Move docs for
4612 MSP430-specific attributes to....
4613 (MSP430 Function Attributes): ...here. Delete the redundant
4614 entries and copy-edit the remaining text.
4615 (MSP430 Variable Attributes): Use uniform format for index
4616 entries and add a cross-reference to the corresponding function
4619 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
4621 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
4623 (x86 Options): Likewise.
4625 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
4629 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
4630 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
4631 to corresponding attribute.
4633 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
4635 * doc/extend.texi (Common Function Attributes) <noplt>: Move
4636 to correct alphabetization of table. Copy-edit and correct
4638 <stack_protect>: Likewise.
4639 <target_clones>: Likewise.
4641 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
4642 Correct punctuation.
4643 (Code Gen Options) <-fno-plt>: Copy-edit.
4645 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4648 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
4649 SI values. Explicitly convert SI to DI and vice-versa.
4651 2016-01-01 Jakub Jelinek <jakub@redhat.com>
4653 PR tree-optimization/69070
4654 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
4655 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
4658 * ubsan.c (ubsan_instrument_float_cast): Call
4659 initialize_sanitizer_builtins.
4662 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
4664 Copyright (C) 2016 Free Software Foundation, Inc.
4666 Copying and distribution of this file, with or without modification,
4667 are permitted in any medium without royalty provided the copyright
4668 notice and this notice are preserved.