1 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
4 * asan.c (instrument_derefs): If we get unknown location, extract it
6 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
8 2016-04-08 Tom de Vries <tom@codesourcery.com>
10 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
11 implicit firstprivate clause.
13 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16 * config/arm/thumb2.md (tst + branch-> lsls + branch
17 peephole below *orsi_not_shiftsi_si): Require that condition
18 register is dead after the peephole.
19 (second peephole after the above): Likewise.
21 2016-04-08 Alan Modra <amodra@gmail.com>
24 * builtins.c (fold_builtin_classify): For IBM extended precision,
25 look at just the high-order double to test for NaN.
26 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
27 test just the high double for Inf but both doubles for subnormal
30 2016-04-07 Jakub Jelinek <jakub@redhat.com>
32 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
33 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
34 node->simdclone->mask_mode != VOIDmode masks.
35 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
36 earlier, use it instead of node->simdclone.
37 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
38 Set clonei->mask_mode.
40 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
43 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
44 Pass it through to cp_parser_already_scoped_statement.
45 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
46 it through to cp_parser_statement.
47 (cp_parser_statement): Pass IF_P through to
48 cp_parser_iteration_statement.
49 (cp_parser_pragma): Adjust call to
50 cp_parser_iteration_statement.
52 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
55 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
56 resolve a future -Wparentheses warning.
57 * omp-low.c (scan_sharing_clauses): Likewise.
58 * tree-parloops.c (eliminate_local_variables): Likewise.
60 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
62 PR rtl-optimization/70398
63 * lra-constraints.c (process_address_1): Check zero scale and code
64 for reloading with zero scale.
66 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
68 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
69 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
71 2016-04-06 Jakub Jelinek <jakub@redhat.com>
73 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
74 Add support for AVX512F clones, include them by default for
75 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
76 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
80 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
81 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
83 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
84 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
85 (lower_omp_target): Set TREE_NO_WARNING for
86 non-addressable possibly uninitialized vars which are copied into
87 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
89 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
91 * config/pa/predicates.md (integer_store_memory_operand): Accept
92 REG+D operands with a large offset when reload_in_progress is true.
93 (floating_point_store_memory_operand): Likewise.
95 2016-04-05 Jakub Jelinek <jakub@redhat.com>
98 * match.pd (nested int casts): Limit to GIMPLE.
100 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
103 * ipa-devirt.c (maybe_record_node): Fix comment; use
104 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
106 2016-04-05 Jakub Jelinek <jakub@redhat.com>
108 PR rtl-optimization/70542
109 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
110 if there are any uses other than insn or debug insns.
112 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
113 Jakub Jelinek <jakub@redhat.com>
115 PR tree-optimization/70509
116 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
117 Shift HOST_WIDE_INT_1U instead of 1.
119 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
121 PR tree-optimization/70509
122 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
123 of the vector base type for index.
125 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
128 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
130 2016-04-05 Richard Biener <rguenther@suse.de>
132 PR tree-optimization/70526
133 * tree-sra.c (build_ref_for_offset): Use prev_base to
134 extract the alias pointer type.
136 2016-04-05 Richard Biener <rguenther@suse.de>
138 * dse.c (struct store_info): Remove alias_set member.
139 (struct read_info_type): Likewise.
140 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
141 spill_deleted, clear_alias_set_lookup): Remove.
142 (get_group_info): Remove dead base == NULL_RTX case.
143 (dse_step0): Remove initialization of removed variables.
144 (delete_dead_store_insn): Reomve alias set dumping.
145 (free_read_records): Remove alias_set handling.
146 (canon_address): Remove alias_set_out parameter.
147 (record_store): Remove spill_alias_set, it's always zero.
148 (check_mem_read_rtx): Likewise.
149 (dse_step2): Rename from ...
150 (dse_step2_nospill): ... this. Adjust.
151 (scan_stores): Rename from ...
152 (scan_stores_nospill): ... this.
153 (scan_reads): Rename from ...
154 (scan_reads_nospill): ... this.
155 (scan_stores_spill, scan_reads_spill): Remove.
156 (dse_step3_scan): Remove for_spills argument which is always false.
157 (dse_step3): Likewise.
158 (dse_step5): Rename from ...
159 (dse_step5_nospill): ... this. Remove alias_set handling.
160 (rest_of_handle_dse): Adjust.
162 2016-04-05 Jakub Jelinek <jakub@redhat.com>
165 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
166 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
167 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
168 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
170 2016-04-05 Richard Biener <rguenther@suse.de>
173 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
174 non-register type temporaries into SSA.
176 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
179 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
180 calls when sanitizing.
181 (possible_polymorphic_call_target_p): Fix formatting.
183 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
184 Jakub Jelinek <jakub@redhat.com>
187 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
188 to ensure a call statement is compatible with a built-in's
190 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
193 2016-04-04 Richard Biener <rguenther@suse.de>
195 PR rtl-optimization/70484
196 * rtl.h (canon_output_dependence): Declare.
197 * alias.c (canon_output_dependence): New function.
198 * dse.c (record_store): Use canon_output_dependence rather
199 than canon_true_dependence.
201 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
204 * cgraph.h (symtab_node::copy_visibility_from): New function.
205 * symtab.c (symtab_node::copy_visibility_from): New function.
206 * ipa-visibility.c (optimize_weakref): New function.
207 (function_and_variable_visibility): Use it.
209 2016-04-04 Martin Liska <mliska@suse.cz>
212 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
213 value that is really in range handled by SBR instruction.
214 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
215 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
216 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
218 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
222 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
223 set, but not for SP_REG operands.
225 2016-04-02 Martin Sebor <msebor@redhat.com>
228 * fold-const.c (maybe_nonzero_address): New function.
229 (fold_comparison): Call it. Fold equality and relational
230 expressions involving null pointers.
231 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
233 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
235 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
236 the "Y" constraint (scalar FP 0.0 immediate).
238 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
239 Add the "const_double" to the list of operand constraints.
241 2016-04-01 Jakub Jelinek <jakub@redhat.com>
243 PR rtl-optimization/70467
244 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
245 If low word of the last operand is 0, just emit addition/subtraction
248 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
251 * config/s390/s390.c (s390_expand_insv): Check for everything
252 constant instead of just VOIDmode stuff.
254 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
257 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
259 2016-04-01 Nathan Sidwell <nathan@acm.org>
261 * tree.def (TRY_CATCH_EXPR): Correct documentation.
263 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
265 PR rtl-optimization/70461
266 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
269 2016-03-31 Martin Liska <mliska@suse.cz>
272 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
273 a tree value or an immediate integer value to a buffer
274 that is eventually copied to a BRIG section.
275 (emit_immediate_operand): Call the function here.
276 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
277 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
278 of class' fields that are removed.
279 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
280 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
281 m_brig_repr_size fields.
283 2016-03-31 Martin Liska <mliska@suse.cz>
286 * hsa-gen.c (hsa_function_representation::update_dominance): New
288 (convert_addr_to_flat_segment): Likewise.
289 (gen_hsa_memory_set): New alignment argument.
290 (gen_hsa_ctor_assignment): Likewise.
291 (gen_hsa_insns_for_single_assignment): Provide alignment
292 to gen_hsa_ctor_assignment.
293 (gen_hsa_insns_for_direct_call): Add new argument.
294 (expand_lhs_of_string_op): New function.
295 (expand_string_operation_builtin): Likewise.
296 (expand_memory_copy): New function.
297 (expand_memory_set): New function.
298 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
299 (convert_switch_statements): Change signature.
300 (generate_hsa): Use a return value of the function.
301 (pass_gen_hsail::execute): Do not call
302 convert_switch_statements here.
303 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
304 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
305 (hsa_function_representation::update_dominance): New function.
307 2016-03-31 Martin Liska <mliska@suse.cz>
310 * hsa-brig.c (emit_directive_variable): Emit alignment
311 according to hsa_symbol::m_align.
312 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
313 (dump_hsa_symbol): Dump alignment of HSA symbols.
314 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
315 (gen_hsa_addr_with_align): New function.
316 (hsa_bitmemref_alignment): Use newly added function.
317 (gen_hsa_insns_for_load): Likewise.
318 (gen_hsa_insns_for_store): Likewise.
319 (gen_hsa_memory_copy): New argument added.
320 (gen_hsa_insns_for_single_assignment): Respect
321 alignment for assignments processed via gen_hsa_memory_copy.
322 (gen_hsa_insns_for_direct_call): Likewise.
323 (gen_hsa_insns_for_return): Likewise.
324 (gen_function_def_parameters): Set default alignment.
325 * hsa.c (hsa_object_alignment): New function.
326 (hsa_byte_alignment): Pasted function.
327 * hsa.h (hsa_symbol::m_align): New field.
329 2016-03-31 Bin Cheng <bin.cheng@arm.com>
331 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
332 scratch field for goto case.
334 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
336 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
338 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
341 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
342 (scalar_chain::convert_insn): Call convert_op for reg
343 moves to handle undefined registers.
345 2016-03-31 Nathan Sidwell <nathan@acm.org>
348 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
349 Assert we don't want to move backwards.
351 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
354 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
356 2016-03-31 Jakub Jelinek <jakub@redhat.com>
358 PR rtl-optimization/70460
359 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
360 with operand from REG_LABEL_OPERAND, instead substitute
361 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
362 Don't do anything for REG_NON_LOCAL_GOTO jumps.
364 2016-03-31 Martin Liska <mliska@suse.cz>
366 * passes.c (execute_one_pass): Do not call
367 todo_after for a discarded function.
369 2016-03-31 Bin Cheng <bin.cheng@arm.com>
371 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
372 (no_cost, infinite_cost): Initialize the new field.
373 (get_computation_cost_at): Record setup cost.
374 (determine_use_iv_cost_address): Skip cost computation for sub
375 uses if we can estimate it without losing accuracy.
377 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
379 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
381 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
382 max_loop_iterations_int.
383 (tree_unswitch_outer_loop): Likewise.
384 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
385 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
387 2016-03-30 Richard Biener <rguenther@suse.de>
390 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
392 2016-03-30 Jakub Jelinek <jakub@redhat.com>
395 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
396 in gen_blendm expander.
398 2016-03-30 Nick Clifton <nickc@redhat.com>
401 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
402 case where we are already provided with an SImode SUBREG.
404 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
407 * config/i386/i386.c (ix86_expand_epilogue): Properly check
408 conflict between DRAP register and __builtin_eh_return.
410 2016-03-30 Michael Matz <matz@suse.de>
411 Richard Biener <rguenther@suse.de>
414 * ipa-polymorphic-call.c (struct type_change_info): Change
415 speculative to an unsigned allowing to limit the work we do.
416 (csftc_abort_walking_p): New inline function..
417 (check_stmt_for_type_change): Limit the number of may-defs
418 skipped for speculative devirtualization to
419 max-speculative-devirt-maydefs.
420 * params.def (max-speculative-devirt-maydefs): New param.
421 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
423 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
426 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
429 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
431 PR tree-optimization/59124
432 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
433 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
435 2016-03-29 Jeff Law <law@redhat.com>
437 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
439 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
441 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
444 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
446 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
447 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
448 gcrt0.o if linking dynamically.
450 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
453 * ipa-devirt.c (methods_equal_p): New function.
454 (compare_virtual_tables): Use it.
455 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
456 * cgraphclones.c (clone_function_name_1): Use
457 symbol_table::symbol_suffix_separator.
458 * coverage.c (build_var): Likewise.
459 * symtab.c (symbol_table::symbol_suffix_separator): New.
461 2016-03-29 Jakub Jelinek <jakub@redhat.com>
463 PR rtl-optimization/70429
464 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
465 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
469 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
471 PR tree-optimization/70405
472 * ssa-iterators.h (num_imm_uses): Add missing braces.
474 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
476 PR rtl-optimization/68695
477 * ira-color.c (allocno_copy_cost_saving): New.
478 (improve_allocation): Use it.
480 2016-03-29 Richard Henderson <rth@redhat.com>
483 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
485 2016-03-29 Richard Biener <rguenther@suse.de>
488 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
489 use alignment returned by get_pointer_alignment_1 if it is
490 bigger than BITS_PER_UNIT.
491 * builtins.c (get_pointer_alignment_1): Do not return true
492 for alignment extracted from SSA info.
494 2016-03-28 James Bowman <james.bowman@ftdichip.com>
496 * config/ft32/ft32.opt (mnodiv): New.
497 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
498 * doc/invoke.texi (FT32 Options -mnodiv): New.
500 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
503 * config/i386/i386.md (define_split, andn): Fix modes.
505 2016-03-26 Richard Biener <rguenther@suse.de>
506 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
509 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
511 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
512 as 2nd argument to cl_optimization_restore().
514 2016-03-25 Richard Henderson <rth@redhat.com>
517 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
518 * config/aarch64/aarch64-protos.h: Declare it.
519 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
521 2016-03-25 Alan Modra <amodra@gmail.com>
524 * config/rs6000/constraints.md (j): Simplify.
525 * config/rs6000/predicates.md (easy_fp_constant): Exclude
527 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
528 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
529 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
530 in all constraint alternatives.
531 (movtd_64bit_nodm): Delete "j" constraint alternative.
533 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
535 * tree-ssa-propagate.c: Enhance docs for
536 SSA_PROP_NOT_INTERESTING.
538 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
540 * doc/extend.texi: Fix typo in documentation to pure attribute.
542 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
545 * config/pa/pa.md (bswapdi2): Use a scratch register.
547 2016-03-24 Richard Henderson <rth@redhat.com>
550 * fold-const.c (extract_muldiv_1): Correct test for multiplication
553 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
555 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
556 using ix86_expand_binary_operator instead of gen_andsi3.
558 2016-03-24 Richard Biener <rguenther@suse.de>
560 PR tree-optimization/70396
561 * tree-vect-stmts.c (vectorizable_comparison): Use
562 get_vectype_for_scalar_type.
564 2016-03-24 Richard Biener <rguenther@suse.de>
567 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
570 2016-03-24 Richard Biener <rguenther@suse.de>
572 PR tree-optimization/70372
573 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
574 build_all_ones_cst to also handle vector types correctly.
576 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
579 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
582 2016-03-23 Marek Polacek <polacek@redhat.com>
585 * doc/invoke.texi: Document -Wignored-attributes.
587 2016-03-23 Bin Cheng <bin.cheng@arm.com>
589 PR tree-optimization/69042
590 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
591 parameter from 30 to 40.
593 2016-03-23 Bin Cheng <bin.cheng@arm.com>
595 PR tree-optimization/69042
596 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
597 for use with constant offset stripped in base.
599 2016-03-23 Richard Biener <rguenther@suse.de>
602 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
603 mode compatibility check.
604 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
606 2016-03-23 Jeff Law <law@redhat.com>
608 PR tree-optimization/64058
609 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
611 (struct ssa_conflicts): Move up earlier in the file.
612 (conflicts_, var_map_): New static variables.
613 (initialize_conflict_count): New function to initialize the
614 CONFLICT_COUNT field for each conflict pair.
615 (compare_pairs): Lazily initialize the conflict count and use it
616 as the first tie-breaker.
617 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
618 and wipe conflicts_ and map_ around the call to qsort. Remove
619 special case for 2 coalesce pairs.
620 * bitmap.c (bitmap_count_unique_bits): New function.
621 (bitmap_count_bits_in_word): New function, extracted from
623 (bitmap_count_bits): Use bitmap_count_bits_in_word.
624 * bitmap.h (bitmap_count_unique_bits): Declare it.
626 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
629 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
630 transparent alias chain for decl assembler name.
631 * config/sol2.c (solaris_assemble_visibility): Likewise.
633 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
635 * config/arm/arm1020e.md (1020call_op): Reduce reservation
637 (v10_fdivs): Likewise.
638 (v10_fdivd): Likewise.
640 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
643 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
644 to not call fclose twice on file.
646 2016-03-23 Jakub Jelinek <jakub@redhat.com>
648 PR tree-optimization/70354
649 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
650 oprnd0 is wider than oprnd1 and there is a cast from the wider
651 type to oprnd1, mask it with the mask of the narrower type.
654 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
655 Optimize TARGET_STV splitters, if high or low word of last argument
658 2016-03-22 Jeff Law <law@redhat.com>
661 tree-ssa-threadbackward.c
662 (fsm_find_control_statement_thread_paths): Correctly distinguish
663 between old style jump threads vs FSM jump threads.
665 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
668 * config/i386/i386.c (scalar_chain::convert_op): Support
669 uninitialized register usage case.
671 2016-03-22 Richard Biener <rguenther@suse.de>
674 * genmatch.c (gen_transform): Adjust last parameter to a three-state
676 (capture::gen_transform): ... to change behavior when substituting
677 a condition into cond or not-cond expr context.
678 (dt_simplify::gen_1): Adjust.
679 * gimple-match-head.c: Include gimplify.h for unshare_expr.
680 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
681 last change and instead change to
682 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
683 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
685 2016-03-22 Anthony Green <green@moxielogic.com>
687 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
688 issue for moxiebox targets.
689 (CC1PLUS_SPEC): Ditto.
691 2016-03-22 Richard Biener <rguenther@suse.de>
694 * fold-const.c (extract_muldiv_1): Properly perform multiplication
697 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
699 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
701 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
704 * config/i386/i386.c (def_builtin): Handle
705 OPTION_MASK_ISA_AVX512VL to be and-ed with other
707 (const struct builtin_description bdesc_special_args[]):
708 Remove duplicate ISA bits.
710 2016-03-22 Jakub Jelinek <jakub@redhat.com>
713 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
714 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
715 in a way that works also for AVX512BW.
718 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
719 instead of source if operands[1] is xmm16 and above and
720 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
721 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
724 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
725 on assign if (*from_p) is a comparison, set it to
726 TREE_NO_WARNING (*from_p).
728 2016-03-21 Jakub Jelinek <jakub@redhat.com>
731 * lra.c (restore_scratches): Ignore deleted insns.
733 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
734 Jakub Jelinek <jakub@redhat.com>
736 PR tree-optimization/70317
737 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
740 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
743 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
746 (movti): Use general_operand for operand 1 predicate.
748 2016-03-21 Martin Liska <mliska@suse.cz>
750 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
752 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
754 2016-03-21 Martin Liska <mliska@suse.cz>
757 * ipa-icf.c (sem_function::parse): Skip static
758 constructors and destructors.
760 2016-03-21 Jakub Jelinek <jakub@redhat.com>
763 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
764 function-like macro, peek following token(s) if it is followed
765 by CPP_OPEN_PAREN token with optional padding in between, and
766 if not, don't treat it like a macro.
768 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
769 Alexander Monakov <amonakov@ispras.ru>
771 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
772 for the stabs debug format.
774 2016-03-21 Richard Biener <rguenther@suse.de>
776 PR tree-optimization/70310
777 * tree-vect-generic.c (expand_vector_condition): Fold the built
780 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
783 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
784 Block third alternative for AVX-512VL target,
786 2016-03-21 Martin Liska <mliska@suse.cz>
789 * hsa-brig.c (emit_function_directives): Mark unemitted
790 global variables for emission.
791 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
792 (get_symbol_for_decl): Likewise.
793 * hsa.h (struct hsa_symbol): New flag.
795 2016-03-21 Richard Biener <rguenther@suse.de>
797 PR tree-optimization/70288
798 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
799 we do not estimate unsimplified all-constant conditionals or
800 switches as optimized away.
802 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
804 PR rtl-optimization/69102
805 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
806 when we have a readonly dependency context.
808 2016-03-18 Jeff Law <law@redhat.com>
810 PR rtl-optimization/70263
811 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
812 (update_equiv_regs): When trying to move a store to after the insn
813 that sets the source of the store, make sure the store occurs after
814 the insn that sets the source of the store. When successful note
815 the REG_EQUIV note created in the dump file.
817 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
818 Bernd Schmidt <bschmidt@redhat.com>
820 * doc/extend.texi: Document more potential problems with basic asms.
822 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
824 PR rtl-optimization/70278
825 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
828 2016-03-18 Jason Merrill <jason@redhat.com>
830 * calls.c (load_register_parameters): Fix zero size sibcall logic.
832 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
834 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
837 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
839 PR tree-optimization/70252
840 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
841 boolean vector has a proper number of elements.
842 (supportable_narrowing_operation): Likewise.
844 2016-03-18 Tom de Vries <tom@codesourcery.com>
847 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
849 2016-03-18 Jakub Jelinek <jakub@redhat.com>
851 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
852 instead of replace_rtx for DEBUG_INSNs.
854 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
856 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
857 load type reservations.
859 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
862 * config/pa/constraints.md: Revert 2015-02-13 change. Use
863 define_constraint for "Q" and "T" constraints.
865 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
867 Tweak the pipeline model for Exynos M1
869 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
872 2016-03-17 David Malcolm <dmalcolm@redhat.com>
875 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
876 where one or both locations aren't within a line_map.
878 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
881 * opts.c (finish_options): Don't set flag_pie to the default if
882 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
885 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
887 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
888 true as ALL_REGS argument to replace_rtx.
890 2016-03-17 Richard Biener <rguenther@suse.de>
893 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
896 2016-03-17 Jakub Jelinek <jakub@redhat.com>
899 * rtl.h (replace_rtx): Add ALL_REGS argument.
900 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
901 equality and assert mode is the same, instead of just rtx pointer
903 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
904 true as ALL_REGS argument to replace_rtx.
906 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
908 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
909 for boolean vector with vector mode only.
910 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
912 2016-03-17 Nick Clifton <nickc@redhat.com>
915 * config/rx/rx.c (rx_print_integer): Print negative constants in
918 2016-03-17 Jakub Jelinek <jakub@redhat.com>
921 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
923 2016-03-16 Richard Henderson <rth@redhat.com>
924 Richard Biener <rguenth@suse.de>
929 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
930 first operand as is_gimple_condexpr.
935 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
936 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
937 Do not gimplify the result.
938 (do_unop): Adjust call to tree_vec_extract.
939 (do_binop): Likewise.
940 (do_compare): Likewise.
941 (do_plus_minus): Likewise.
942 (do_negate): Likewise.
943 (expand_vector_condition): Likewise.
946 2016-03-16 Richard Henderson <rth@redhat.com>
949 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
950 (aarch64_classify_address): Use it.
951 (aarch64_legitimize_address): Force all subexpressions of PLUS
952 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
954 2016-03-16 Jakub Jelinek <jakub@redhat.com>
955 Richard Biener <rguenth@suse.de>
958 * rtlanal.c (replace_rtx): For REG, if from is a REG,
959 return to even if only REGNO is equal, and assert
962 2016-03-11 Jeff Law <law@redhat.com>
964 PR rtl-optimization/70224
965 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
967 2016-03-16 Richard Henderson <rth@redhat.com>
970 * function.h (struct function): Add has_forced_label_in_static.
971 * gimplify.c (force_labels_r): Set it.
972 * lto-streamer-in.c (input_struct_function_base): Read it.
973 * lto-streamer-out.c (output_struct_function_base): Write it.
974 * tree-inline.c (has_label_address_in_static_1): Remove.
975 (copy_forbidden): Remove fndecl parameter; test
976 has_forced_label_in_static.
977 (inline_forbidden_p): Update call to copy_forbidden.
978 (tree_versionable_function_p): Likewise.
979 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
980 (chkp_versioning): Likewise.
981 * tree-inline.h (copy_forbidden): Update decl.
983 2016-03-16 Marek Polacek <polacek@redhat.com>
986 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
987 function being thunked if the result type doesn't have fixed size.
988 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
989 doesn't have fixed size.
991 2016-03-16 Bin Cheng <bin.cheng@arm.com>
993 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
994 reporting malformed loop nest.
996 2016-03-16 Tom de Vries <tom@codesourcery.com>
999 * ipa-devirt.c (possible_polymorphic_call_targets): Move
1000 nodes.length () == 1 test to before first nodes[0] access.
1002 2016-03-16 Tom de Vries <tom@codesourcery.com>
1004 PR tree-optimization/68715
1005 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
1008 2016-03-16 Tom de Vries <tom@codesourcery.com>
1010 PR tree-optimization/68809
1011 * graphite-scop-detection.c (same_close_phi_node): Test if result types
1014 2016-03-16 Carlos O'Donell <carlos@redhat.com>
1015 Sandra Loosemore <sandra@codesourcery.com>
1017 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
1018 on leaf attribute. Mention ELF interposition problems.
1020 2016-03-16 Alan Modra <amodra@gmail.com>
1022 PR rtl-optimization/69195
1023 PR rtl-optimization/47992
1024 * ira.c (indirect_jump_optimize): Ignore artificial defs.
1027 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
1030 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
1032 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1034 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
1036 2016-03-15 Jakub Jelinek <jakub@redhat.com>
1038 PR rtl-optimization/70222
1039 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
1040 optimization if mode is different from result_mode, queue up masking
1041 of the result in outer_op. Formatting fix.
1044 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
1047 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
1049 PR rtl-optimization/69032
1050 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
1051 looping backwards over basic block insns.
1053 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
1056 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
1057 to non-speculative when propagating trap bits.
1059 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
1061 PR rtl-optimization/63384
1062 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
1065 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
1068 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
1069 factored out from ...
1070 (sched_analyze_insn): ... here.
1071 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
1072 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
1073 get_implicit_reg_pending_clobbers in it.
1074 (setup_id_reg_sets): Use setup_id_implicit_regs.
1075 (deps_init_id): Ditto.
1077 2016-03-15 Tom de Vries <tom@codesourcery.com>
1080 * cgraph.c (cgraph_node::get_body): Save, reset and restore
1082 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
1083 execute_function_dump.
1084 (execute_one_pass): Don't dump function if it will be dumped after ipa
1087 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
1089 * genrecog.c (match_pattern_2): If pred is NULL don't call
1090 safe_predicate_mode on it.
1092 2016-03-14 Jakub Jelinek <jakub@redhat.com>
1095 * lra-constraints.c (delete_move_and_clobber): Change assertion
1096 to also allow dregno == 0.
1098 2016-03-14 Richard Henderson <rth@redhat.com>
1101 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
1102 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
1103 (reassociate_bb): Use optimize_vec_cond_expr; avoid
1104 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
1107 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
1110 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
1112 (lra_create_live_ranges_1): initialize hard register biggest_mode to
1114 * lra-constraints.c (split_reg): For hard regs, try to find the
1115 biggest single-register mode used in the function.
1117 2016-03-14 Richard Biener <rguenther@suse.de>
1119 PR tree-optimization/56365
1120 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
1121 constants to compare against.
1123 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
1126 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1127 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
1128 (define_split for the GPR case): Use int_reg_operand instead of
1129 gpc_reg_operand for the output.
1131 2016-03-14 Tom de Vries <tom@codesourcery.com>
1133 PR tree-optimization/70045
1134 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
1135 create_empty_if_region_on_edge argument.
1137 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
1139 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
1140 (STACK_CHECK_PROTECT): Likewise.
1141 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
1142 (STACK_CHECK_PROTECT): Likewise.
1143 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
1144 (STACK_CHECK_PROTECT): Likewise.
1145 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
1146 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1147 (STACK_CHECK_PROTECT): Likewise.
1149 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
1151 PR rtl-optimization/69307
1152 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
1153 registers in modes that span more than one register.
1155 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
1158 * lra-constraints.c (delete_move_and_clobber): New.
1159 (remove_inheritance_pseudos): Use it.
1161 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
1164 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
1165 the libcall is LCT_THROW.
1166 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
1167 for the checking routine.
1169 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1172 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
1173 optimization if we have direct move.
1174 (roundu32<mode>2_fprs): Likewise.
1176 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
1179 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
1181 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
1182 Arguments swapped. All callers changed. Take reg_renumber into
1183 account, and Calculate and compare register ranges for hard regs.
1185 2016-03-11 Jeff Law <law@redhat.com>
1187 PR tree-optimization/70190
1188 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1189 Handle cases where we can not extract the taken edge, even though we
1190 found a constant value.
1192 PR tree-optimization/64058
1193 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
1194 (num_coalesce_pairs): Move up earlier in file.
1195 (find_coalesce_pair): Initialize the INDEX field for each pair
1197 (compare_pairs): No longer sort on the elements in each pair.
1198 Instead break ties with the index of the coalesce pair.
1200 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1203 * config/aarch64/aarch64-protos.h
1204 (aarch64_save_restore_target_globals): New prototype.
1205 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
1206 Call the above when popping pragma.
1207 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
1209 (aarch64_set_current_function): Rewrite using the above.
1211 2016-03-11 Jakub Jelinek <jakub@redhat.com>
1213 PR tree-optimization/70177
1214 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
1215 (extract_ops_from_tree): ... this. In the 2 argument
1216 overload remove _1 suffix.
1217 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
1218 (extract_ops_from_tree): ... this.
1219 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
1221 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
1222 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
1223 extract_ops_from_tree instead of 2 operand one.
1225 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
1227 PR tree-optimization/70013
1228 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
1229 for constant-pool entries.
1231 2016-03-11 Jakub Jelinek <jakub@redhat.com>
1233 PR rtl-optimization/70174
1234 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
1235 followed by gen_lowpart on force_reg instead of just gen_lowpart.
1237 PR tree-optimization/70169
1238 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
1239 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
1242 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1243 Jakub Jelinek <jakub@redhat.com>
1246 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
1247 of uninitialized values.
1249 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1251 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
1253 ("*trunctddd2"): New pattern definition.
1254 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
1257 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1259 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
1260 definitions for BFP and DFP rounding modes.
1261 ("fixuns_truncdddi2", "fixuns_trunctddi2")
1262 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
1263 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
1264 ("fix_trunctf<mode>2"): Use the new constants instead of magic
1267 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1269 * config/s390/constraints.md: Adjust comment.
1270 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
1271 s390_decompose_addrstyle_without_index.
1272 * config/s390/predicates.md (shift_count_or_setmem_operand):
1273 Rename to setmem_operand.
1274 * config/s390/s390-protos.h
1275 (s390_decompose_shift_count): Rename to
1276 s390_decompose_addrstyle_without_index.
1277 * config/s390/s390.c (s390_decompose_shift_count)
1278 (s390_mem_constraint, print_shift_count_operand)
1279 (print_operand_address, print_operand): Rename
1280 s390_decompose_shift_count to
1281 s390_decompose_addrstyle_without_index and rename
1282 print_shift_count_operand to print_addrstyle_operand troughout the
1284 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
1285 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
1286 Rename shift_count_or_setmem_operand to setmem_operand.
1287 * config/s390/vx-builtins.md ("vec_insert<mode>")
1288 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
1291 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1294 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
1295 Handle overlapping retval and newval.
1297 2016-03-10 Nick Clifton <nickc@redhat.com>
1300 * config/aarch64/aarch64.c
1301 (aarch64_override_options_after_change_1): When forcing
1302 flag_omit_frame_pointer to be true, use a special value that can
1303 be detected if this function is called again, thus preventing
1304 flag_omit_leaf_frame_pointer from being forced to be false.
1306 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1308 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
1309 Set x_flag_omit_leaf_frame_pointer when handling
1310 -momit-leaf-frame-pointer.
1312 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1315 * cgraph.c (cgraph_node::dump): Dump split_part and
1316 indirect_call_target.
1317 * cgraph.h (cgraph_node): Add indirect_call_target flag.
1318 * ipa.c (has_addr_references_p): Cleanup.
1319 (is_indirect_call_target_p): New.
1320 (walk_polymorphic_call_targets): Do not mark virtuals that may be
1321 called indirectly as local.
1322 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
1324 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1327 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
1328 on cxa_pure_virtual.
1330 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1333 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
1335 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1338 * tree.c (need_assembler_name_p): Only record main variant type names.
1340 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
1343 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
1344 Always define to 0 or 1.
1345 (TARGET_FIX_ERR_A53_843419): New macro.
1346 * config/aarch64/aarch64-elf-raw.h
1347 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
1348 * config/aarch64/aarch64-linux.h: Likewise.
1349 * config/aarch64/aarch64.c
1350 (aarch64_override_options_after_change_1): Do not default
1351 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
1353 (aarch64_attributes): Handle fix-cortex-a53-843419.
1354 (aarch64_can_inline_p): Likewise.
1355 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
1357 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
1358 Jakub Jelinek <jakub@redhat.com>
1360 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
1361 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
1362 DECL_COMMONS if flag_unconstrained_commons is set.
1363 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1364 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
1365 (funconstrained-commons): Document.
1367 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
1369 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
1370 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
1372 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1374 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
1375 has a proper number of elements.
1377 2016-03-10 Alan Modra <amodra@gmail.com>
1379 PR rtl-optimization/69195
1380 PR rtl-optimization/47992
1381 * ira.c (recorded_label_ref): Delete.
1382 (update_equiv_regs): Return void.
1383 (indirect_jump_optimize): New function.
1384 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
1385 before regstat_compute_ri. Don't rebuild_jump_labels here.
1386 Delete update_regstat.
1388 2016-03-10 Richard Biener <rguenther@suse.de>
1390 PR tree-optimization/70128
1391 * tree-ssa-structalias.c (set_uids_in_ptset): Set
1392 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
1394 2016-03-09 Jakub Jelinek <jakub@redhat.com>
1396 PR tree-optimization/70152
1397 * tree-sra.c (replace_removed_params_ssa_names): Copy over
1398 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
1401 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
1402 instead of gen_sse2_loadlpd.
1403 * config/i386/sse.md (*vec_concatv2df): Rename to...
1404 (vec_concatv2df): ... this.
1406 PR tree-optimization/70127
1407 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
1409 2016-03-09 David Malcolm <dmalcolm@redhat.com>
1413 * diagnostic-show-locus.c (compatible_locations_p): New function.
1414 (layout::layout): Sanitize ranges using compatible_locations_p.
1416 2016-03-09 David Malcolm <dmalcolm@redhat.com>
1420 * diagnostic-show-locus.c (layout_range::layout_range): Replace
1421 location_range param with three const expanded_locations * and a
1423 (layout::layout): Replace call to
1424 rich_location::lazily_expand_location with get_expanded_location.
1425 Extract the range and perform location expansion here, passing
1426 the results to the layout_range ctor.
1427 * diagnostic.c (source_range::debug): Delete.
1428 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
1429 of rich_location::get_expanded_location.
1430 * gcc-rich-location.c (get_range_for_expr): Delete.
1431 (gcc_rich_location::add_expr): Reimplement to avoid the
1432 rich_location::add_range overload that took a location_range,
1433 passing a location_t instead.
1435 2016-03-09 Richard Biener <rguenther@suse.de>
1436 Jakub Jelinek <jakub@redhat.com>
1438 PR tree-optimization/70138
1439 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1440 Also skip vect_double_reduction_def.
1442 2016-03-09 Jakub Jelinek <jakub@redhat.com>
1445 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
1446 if the operand is "m".
1448 2016-03-09 Nathan Sidwell <nathan@acm.org>
1450 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
1452 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1454 * config/i386/i386.c (processor_target_table): Fix cost table
1455 intialization order for znver1.
1457 2016-03-08 Jakub Jelinek <jakub@redhat.com>
1459 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
1460 - becuase -> because.
1461 * ipa-reference.c (ignore_module_statics): Likewise.
1462 * cgraph.c (cgraph_node::get_body): Likewise.
1463 * ipa-inline.c (early_inliner): Likewise.
1464 * ipa-devirt.c (types_same_for_odr): Likewise.
1465 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
1466 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
1468 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1470 * tree-ssa-math-opts.c: Fix typo in comment.
1472 2016-03-08 Jakub Jelinek <jakub@redhat.com>
1475 * config/i386/i386.c (scalar_chain::make_vector_copies,
1476 scalar_chain::convert_reg): Call end_sequence in between
1477 get_insns and emit_conversion_insns rather than after both
1480 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
1483 * config/i386/i386.h (machine_function): Add
1484 pc_thunk_call_expanded flag.
1485 (ix86_pc_thunk_call_expanded): New define.
1486 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
1487 (*set_got): Rename insn pattern from set_got.
1488 (*set_got_labelled): Rename inst pattern from set_got_labelled.
1489 * config/i386/i386.c (ix86_compute_frame_layout): Use
1490 ix86_pc_thunk_call_expanded to prevent red-zone.
1492 2016-03-07 Martin Jambor <mjambor@suse.cz>
1494 * hsa.h (hsa_get_ctor_statements): Declare.
1495 (hsa_get_dtor_statements): Likewise.
1496 (hsa_get_kernel_dispatch_type): Likewise.
1497 * hsa.c (hsa_get_ctor_statements): New function.
1498 (hsa_get_dtor_statements): Likewise.
1499 (hsa_get_kernel_dispatch_type): Likewise.
1500 * hsa-brig.c (hsa_cdtor_statements): Removed.
1501 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
1502 hsa_get_dtor_statements.
1503 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
1504 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
1506 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
1508 * config/arm/arm-cores.def (cortex-r8): New.
1509 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
1510 * config/arm/arm-tune.md: Likewise.
1511 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
1513 2016-03-07 Martin Sebor <msebor@redhat.com>
1515 PR rtl-optimization/19705
1516 * doc/invoke.texi (Options That Control Optimization): Clarify
1517 -fno-branch-count-reg.
1519 2016-02-26 Richard Biener <rguenther@suse.de>
1520 Jeff Law <law@redhat.com>
1522 PR tree-optimization/69740
1523 * cfghooks.c (remove_edge): Request loop fixups if we delete
1524 an edge that might turn an irreducible loop into a natural
1526 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
1527 Move after definition of loops_state_clear.
1529 2016-03-07 Bin Cheng <bin.cheng@arm.com>
1531 PR rtl-optimization/69052
1532 * rtlanal.c (commutative_operand_precedence): Set higher precedence
1535 2016-03-07 Tom de Vries <tom@codesourcery.com>
1537 PR tree-optimization/70116
1538 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
1539 is_tm_ending stmts and ubsan/asan internal functions.
1540 (find_duplicate): Use it. Don't test is_tm_ending here.
1542 2016-03-07 Richard Biener <rguenther@suse.de>
1544 PR tree-optimization/70115
1545 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
1546 (propagate_constants_for_unrolling): Use replace_uses_by.
1548 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
1551 * omp-low.c (struct oacc_loop): Add ifns.
1552 (new_oacc_loop_raw): Initialize it.
1553 (finish_oacc_loop): Clear mask & flags if no ifns.
1554 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
1555 (oacc_loop_xform_loop): Add ifns arg & adjust.
1556 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
1558 2016-03-07 Richard Henderson <rth@redhat.com>
1561 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
1562 (insert_value_copy_on_edge): Likewise.
1564 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1566 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
1568 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1571 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
1573 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1575 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
1577 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1579 Fix sseimul type attribute.
1580 * config/i386/znver1.md
1581 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
1582 znver1_sseimul_avx256_load) : Fix the type attribute.
1583 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
1584 pipe usage and latency.
1586 2016-03-05 Jakub Jelinek <jakub@redhat.com>
1589 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
1590 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
1593 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
1596 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
1598 PR rtl-optimization/69941
1599 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
1600 the reg share its mode.
1602 2016-03-04 Jeff Law <law@redhat.com>
1604 PR tree-optimization/69196
1605 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1606 If the both SSA_NAMEs are anonymous, then consider them unassociated
1607 and include the PHI in the statement count.
1609 2016-03-05 Tom de Vries <tom@codesourcery.com>
1611 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
1612 construct in oacc routine. Check for oacc region in oacc routine.
1614 2016-03-04 Jakub Jelinek <jakub@redhat.com>
1617 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
1618 2016-02-22 changes, instead don't recurse if RECUR is already true.
1619 Don't change *dynamic_check if RECUR. Adjust recursive caller
1620 to pass true to the new argument.
1621 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
1624 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
1625 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
1627 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
1629 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
1631 PR rtl-optimization/57676
1632 * lra-assigns.c (lra_assign): Guard test for maximum iterations
1635 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
1637 * tree-vect-patterns.c (search_type_for_mask): Handle
1638 comparison of booleans.
1640 2016-03-04 Jakub Jelinek <jakub@redhat.com>
1642 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
1646 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
1647 all other ops that have dw_val_class_die_ref operands,
1648 and DW_OP_GNU_entry_value.
1650 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1652 PR rtl-optimization/69904
1653 * config/arm/arm.c (arm_cannot_copy_insn_p):
1654 Return true for load-exclusive instructions.
1656 2016-03-03 Jakub Jelinek <jakub@redhat.com>
1659 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
1660 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
1661 the pattern no matter if it is used just by non-pattern, pattern
1663 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
1664 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
1665 oprnd1 def_stmt is in pattern, don't look through it.
1667 2016-03-03 Marek Polacek <polacek@redhat.com>
1670 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
1672 2016-03-03 Martin Liska <mliska@suse.cz>
1674 PR tree-optimization/70043
1675 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
1676 previous statement if we see a debug statement.
1678 2016-03-03 Richard Biener <rguenther@suse.de>
1680 PR tree-optimization/55936
1681 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
1682 parameter and guard unsafe equivalence use.
1683 (vrp_evaluate_conditional_warnv_with_ops): Always use
1684 safe equivalences but not via the quadratic compare_names
1687 2016-03-03 Michael Collison <michael.collison@linaro.org>
1690 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
1691 for operand 1 to s_register_operand. Change predicate for operand
1692 2 to arm_not_immediate_operand.
1694 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
1696 * doc/tm.texi: Regenerated.
1698 2016-03-02 Richard Henderson <rth@redhat.com>
1701 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
1702 simplification when all args are positive non-fixed registers.
1704 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1706 * target.def (lra_p): Specify that new ports should use LRA.
1708 2016-03-02 Jakub Jelinek <jakub@redhat.com>
1711 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
1712 gimplify_type_sizes the type they refer to.
1713 (omp_notice_variable): Handle reference vars to VLAs.
1714 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
1715 reference to VLA decls in the second pass instead of first pass.
1717 2016-03-02 Tom de Vries <tom@codesourcery.com>
1719 PR tree-optimization/68659
1720 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
1721 new_expr == NULL_TREE.
1722 (get_new_name): Handle ADDR_EXPR.
1724 2016-03-02 Bin Cheng <bin.cheng@arm.com>
1726 PR rtl-optimization/69052
1727 * loop-invariant.c (canonicalize_address): New function.
1728 (inv_can_prop_to_addr_use): Check validity of address expression
1729 which is canonicalized by above function.
1731 2016-03-02 Alan Modra <amodra@gmail.com>
1734 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
1737 2016-03-02 Jakub Jelinek <jakub@redhat.com>
1740 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
1741 (*movhi_internal): Put mask moves from and to memory separately
1742 from moves from/to GPRs.
1744 2016-03-02 Richard Biener <rguenther@suse.de>
1746 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
1747 GENERIC expressions in GIMPLE.
1749 2016-03-02 Richard Biener <rguenther@suse.de>
1751 * config/i386/i386.c (type_natural_mode): Fix typo.
1753 2016-03-02 Nick Clifton <nickc@redhat.com>
1755 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
1757 2016-03-02 Richard Biener <rguenther@suse.de>
1758 Uros Bizjak <ubizjak@gmail.com>
1761 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
1763 2016-03-02 Richard Biener <rguenther@suse.de>
1766 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
1768 2016-03-02 Marek Polacek <polacek@redhat.com>
1771 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
1772 "is promoted to" warning.
1774 2016-03-01 DJ Delorie <dj@redhat.com>
1776 * config.gcc: Deprecate mep-*.
1778 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
1781 * lra-constraints.c (regno_val_use_in): New.
1782 (match_reload): Use it instead of regno_use_in.
1784 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
1786 PR rtl-optimization/70007
1787 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
1788 references present in REG_EQUAL notes attached to non-SET patterns.
1790 2016-03-01 Jeff Law <law@redhat.com>
1792 PR tree-optimization/69196
1793 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1794 Appropriately clamp the number of statements to copy when the
1795 thread path does not traverse a loop backedge.
1797 PR tree-optimization/69196
1798 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1799 Do count some PHIs in the thread path against the insn count. Decrease
1800 final statement count by one as the control statement in the last
1801 block will get removed. Remove special cased code for handling PHIs
1804 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
1807 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
1808 asm dialect alternatives to explicit GOTPCREL calls.
1810 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
1813 * ira.c (do_reload): Issue warning for generic stack checking here...
1814 * reload1.c (reload): ...instead of here and streamline it.
1816 2016-03-01 Nick Clifton <nickc@redhat.com>
1818 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
1820 2016-03-01 Richard Biener <rguenther@suse.de>
1822 PR tree-optimization/69983
1823 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
1824 types and fall back to operand_equal_p.
1826 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1829 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1831 * config/s390/constraints.md ("jm8"): New constraint.
1832 * config/s390/predicates.md ("const_int_8bitset_operand"): New
1834 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
1836 ("*setmem_long<setmem_and>"): New pattern.
1837 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
1839 ("*setmem_long_31z<setmem_and>"): New pattern.
1840 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
1841 New substitution rules with the required attributes.
1844 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1847 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1849 * gensupport.c (process_substs_on_one_elem): Split loop to
1850 complete mark_operands_used_in_match_dup on all expressions in the
1852 (adjust_operands_numbers): Inline into process_substs_on_one_elem
1853 and remove function.
1855 2016-03-01 Richard Biener <rguenther@suse.de>
1858 * fold-const.c (fold_indirect_ref_1): Fix range checking for
1859 vector BIT_FIELD_REF extract.
1861 2016-03-01 Richard Biener <rguenther@suse.de>
1863 PR tree-optimization/69994
1864 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
1866 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
1868 PR tree-optimization/69956
1869 * tree-vect-stmts.c (supportable_widening_operation): Support
1870 multi-step conversion of boolean vectors.
1871 (supportable_narrowing_operation): Likewise.
1873 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1875 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
1878 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1880 * config/s390/subst.md (DSI_VI): New mode iterator.
1881 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
1882 * config/s390/vector.md ("vec_set<mode>"): Move expander before
1883 the insn definition.
1884 ("*vec_set<mode>"): Change predicate and add alternative to
1885 support only either register or const_int operands as element
1887 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
1889 ("vec_extract<mode>"): New expander.
1890 ("*vec_extract<mode>"): New insn definition supporting reg and
1891 const_int element selectors.
1892 ("*vec_extract<mode>_plus"): New insn definition supporting
1893 reg+const_int element selectors.
1894 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
1895 following expander+insn definition.
1896 ("<vec_shifts_name><mode>3"): New expander.
1897 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
1899 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1901 * config/s390/s390.md ("*tabort_1"): Change predicate to
1902 nonmemory_operand. Add a second alternative to cover
1903 register as well as const int operands.
1904 ("*tabort_1_plus"): New pattern definition.
1906 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1908 * config/s390/s390.md ("*ashrdi3_cc_31")
1909 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
1910 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
1911 Merge insn definitions into ...
1912 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
1913 New pattern definition.
1914 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
1915 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
1916 ("*ashr<mode>3_and"): Merge insn definitions into ...
1917 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
1918 New pattern definition.
1919 * config/s390/subst.md ("addr_style_op_cc_subst")
1920 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
1921 substitutions patterns plus attributes.
1922 Add ashiftrt to SUBST iterator.
1924 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1926 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
1927 op2 to nonmemory_operand.
1928 ("*<shift>di3_31", "*<shift>di3_31_and"):
1929 Merge into single pattern definition ...
1930 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
1931 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
1932 pattern definition ...
1933 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
1934 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
1937 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1939 * config/s390/predicates.md (const_int_6bitset_operand): New
1941 * config/s390/s390.md: Include subst.md.
1942 ("rotl<mode>3"): New expander.
1943 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
1945 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
1946 * config/s390/subst.md: New file.
1948 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1950 * config/s390/s390.md ("op_type", "atype", "length" attributes):
1951 Remove RRR type. It doesn't really exist.
1952 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
1954 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
1955 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
1956 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
1957 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
1958 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
1959 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
1960 `enabled' attribute.
1962 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1964 * gensupport.c (process_substs_on_one_elem): Split loop to
1965 complete mark_operands_used_in_match_dup on all expressions in the
1967 (adjust_operands_numbers): Inline into process_substs_on_one_elem
1968 and remove function.
1970 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
1973 * config/sparc/sparc.c (NWORDS_UP): Rename to...
1974 (CEIL_NWORDS): ...this. Use CEIL macro.
1975 (compute_fp_layout): Adjust to above renaming.
1976 (function_arg_union_value): Likewise.
1977 (sparc_arg_partial_bytes): Likewise.
1978 (sparc_function_arg_advance): Likewise.
1980 2016-02-29 Jeff Law <law@redhat.com>
1982 PR tree-optimization/70005
1983 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
1984 where an object with a boolean range is compared against a value
1987 PR tree-optimization/69999
1988 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
1989 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
1992 2016-02-29 Richard Biener <rguenther@suse.de>
1994 PR tree-optimization/69994
1995 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
1996 (get_unary_op): Look through nop conversions.
1997 (ops_equal_values_p): New function, look for equality diregarding
1999 (eliminate_plus_minus_pair): Use ops_equal_values_p
2000 (repropagate_negates): Do not use get_unary_op here.
2002 2016-02-29 Martin Liska <mliska@suse.cz>
2004 * system.h: Poison ENABLE_CHECKING macro.
2006 2016-02-29 Martin Liska <mliska@suse.cz>
2008 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
2009 is presented in dump flags.
2010 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
2011 (hsa_regalloc): Likewise.
2013 2016-02-19 Richard Biener <rguenther@suse.de>
2015 PR tree-optimization/69980
2016 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
2017 permutation of those we need to keep.
2019 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
2022 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
2023 (NWORDS_UP): ...this
2024 (init_cumulative_args): Minor tweaks.
2025 (sparc_promote_function_mode): Likewise.
2026 (scan_record_type): Delete.
2027 (traverse_record_type): New function template.
2028 (classify_data_t): New structure type.
2029 (classify_registers): New inline function.
2030 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
2031 exhausted. Instantiate traverse_record_type on classify_registers and
2032 deal with the case of a structure passed in slot #15 with no FP field
2034 (assign_data_t): New structure type.
2035 (compute_int_layout): New static function.
2036 (compute_fp_layout): Likewise.
2037 (count_registers): New inline function.
2038 (assign_int_registers): New static function.
2039 (assign_fp_registers): Likewise.
2040 (assign_registers): New inline function.
2041 (function_arg_record_value_1): Delete.
2042 (function_arg_record_value_2): Likewise.
2043 (function_arg_record_value_3): Likewise.
2044 (function_arg_record_value): Adjust to above changes. Instantiate
2045 traverse_record_type on count_registers to first count the number of
2046 registers to be used and then on assign_registers to assign them.
2047 (function_arg_union_value): Adjust to above renaming.
2048 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
2049 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
2050 case of a structure passed in slot #15
2051 (sparc_function_arg_advance): Likewise.
2052 (function_arg_padding): Minor tweak.
2054 2016-02-29 Richard Biener <rguenther@suse.de>
2056 PR tree-optimization/69720
2057 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
2058 the adjustment_def path for possibly vectorized defs.
2059 (vect_create_epilog_for_reduction): Handle vectorized initial
2062 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
2064 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
2066 2016-02-27 Jeff Law <law@redhat.com>
2069 2016-02-26 Richard Biener <rguenther@suse.de>
2070 Jeff Law <law@redhat.com>
2072 PR tree-optimization/69740
2073 * cfghooks.c (remove_edge): Request loop fixups if we delete
2074 an edge that might turn an irreducible loop into a natural
2077 2016-02-27 Jakub Jelinek <jakub@redhat.com>
2079 PR rtl-optimization/69896
2080 * tree-vect-generic.c (get_compute_type): Avoid single element
2083 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
2085 Rename the AArch64 tuning option and related functions to enable the
2086 Newton series for the reciprocal square root to reflect its
2087 approximative characteristic.
2089 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
2090 function to "aarch64_emit_approx_rsqrt".
2091 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
2092 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
2093 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
2094 (xgene1_tunings): Likewise.
2095 (use_rsqrt_p): Likewise.
2096 (aarch64_emit_swrsqrt): Use new function name.
2097 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
2098 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
2099 text explaining this option.
2100 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
2102 2016-02-26 Jakub Jelinek <jakub@redhat.com>
2105 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2106 complain about -mallow-movmisalign without -mvsx if
2107 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
2109 2016-02-26 Joel Sherrill <joel@rtems.org>
2111 * config.gcc: Add x86_64-*-rtems*.
2112 * gcc/config/i386/rtems-64.h: New file.
2114 2016-02-26 Joel Sherrill <joel@rtems.org>
2116 * config.gcc: Add aarch64-*-rtems*.
2117 * gcc/config/aarch64/rtems.h: New file.
2119 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
2122 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
2123 shift amount using %h. Add comment.
2125 2016-02-26 Richard Biener <rguenther@suse.de>
2126 Jeff Law <law@redhat.com>
2128 PR tree-optimization/69740
2129 * cfghooks.c (remove_edge): Request loop fixups if we delete
2130 an edge that might turn an irreducible loop into a natural
2133 2016-02-26 Martin Jambor <mjambor@suse.cz>
2136 * tree-sra.c (sra_modify_assign): Do not remove loads of
2137 uninitialized aggregates to SSA_NAMEs.
2139 2016-02-26 Richard Henderson <rth@redhat.com>
2142 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
2143 pseudo in case the target rtx matches the source of the left
2146 2016-02-26 Martin Jambor <mjambor@suse.cz>
2149 * hsa.h (hsa_type_packed_p): Declare.
2150 * hsa.c (hsa_type_packed_p): New function.
2151 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
2153 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
2154 * hsa-brig.c (emit_basic_insn): Likewise.
2156 2016-02-26 Martin Jambor <mjambor@suse.cz>
2159 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
2161 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
2163 2016-02-26 Martin Jambor <mjambor@suse.cz>
2165 * hsa.h (is_a_helper): New overload for hsa_op_immed for
2166 hsa_op_with_type operands.
2167 (hsa_unsigned_type_for_type): Declare.
2168 * hsa.c (hsa_unsigned_type_for_type): New function.
2169 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
2170 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
2171 the finalizer. Do not emit extra move.
2173 2016-02-26 Martin Jambor <mjambor@suse.cz>
2175 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
2176 atomic operations in private segment.
2178 2016-02-26 Martin Jambor <mjambor@suse.cz>
2180 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
2181 statements to wi->info. Also disallow omp simd constructs.
2182 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
2183 for not gridifying. Dump special string for omp_for.
2185 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2188 * config/aarch64/aarch64.c (aarch64_set_current_function):
2189 Save/restore target globals when switching to
2190 target_option_default_node.
2192 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2195 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
2196 Return 0 if !SHIFT_COUNT_TRUNCATED.
2198 2016-02-26 Jakub Jelinek <jakub@redhat.com>
2199 Eric Botcazou <ebotcazou@adacore.com>
2201 PR rtl-optimization/69891
2202 * dse.c (scan_insn): If we can't figure out memset arguments
2203 or they are non-constant, call clear_rhs_from_active_local_stores.
2205 2016-02-26 Martin Liska <mliska@suse.cz>
2207 * doc/extend.texi: Mention clog10, clog10f an clog10l
2208 in Builtins section.
2210 2016-02-26 Martin Liska <mliska@suse.cz>
2212 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
2214 (resolve_args_picking_1): Likewise.
2215 * dwarf2out.h (struct GTY): Likewise.
2217 2016-02-26 Martin Liska <mliska@suse.cz>
2219 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
2221 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
2223 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
2224 Martin Liska <mliska@suse.cz>
2226 * doc/install.texi: Mention --enable-valgrind-annotations.
2228 2016-02-26 Richard Biener <rguenther@suse.de>
2230 PR tree-optimization/69551
2231 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
2232 looking through aliases adjust DECL_PT_UID to refer to the
2233 ultimate alias target.
2235 2016-02-25 Martin Liska <mliska@suse.cz>
2238 * alloc-pool.c (after_memory_report): New variable.
2239 * alloc-pool.h (base_pool_allocator ::release): Do not use
2240 the infrastructure if after_memory_report.
2241 * toplev.c (toplev::main): Mark after memory report.
2243 2016-02-25 Richard Biener <rguenther@suse.de>
2245 PR tree-optimization/48795
2246 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
2248 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
2251 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
2252 offloading is enabled and -fopenacc or -fopenmp is specified.
2253 (CRTOFFLOADEND): Likewise.
2254 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
2255 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
2256 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
2257 (offload_objects_file_name): New static var.
2258 (tool_cleanup): Remove offload_objects_file_name file.
2259 (find_offloadbeginend): Replace with ...
2260 (find_crtoffloadtable): ... this.
2261 (run_gcc): Remove offload_argc and offload_argv.
2262 Get offload_objects_file_name from -foffload-objects=... option.
2263 Read names of object files with offload from this file, pass them to
2264 compile_images_for_offload_targets. Don't call find_offloadbeginend and
2265 don't pass offloadbegin and offloadend to the linker. Don't pass
2266 offload non-LTO files to the linker, because now they're not claimed.
2268 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
2271 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
2272 on builtin_unreachable.
2274 2016-02-25 Jakub Jelinek <jakub@redhat.com>
2276 PR rtl-optimization/69896
2277 * regcprop.c: Include cfgrtl.h.
2278 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
2279 than remembered mode, either delete it (if noop_move_p), or
2280 treat like copy_p but not noop_p instruction.
2282 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2285 * dwarf2out.c (gen_variable_die): Work around buggy LTO
2286 - allow NULL decl for Fortran DW_TAG_common_block variables.
2288 2016-02-24 Jason Merrill <jason@redhat.com>
2290 * common.opt (flifetime-dse): Add -flifetime-dse=1.
2292 2016-02-24 Richard Biener <rguenther@suse.de>
2293 Jakub Jelinek <jakub@redhat.com>
2296 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
2297 conditionally executed ops to well-defined overflow behavior.
2299 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2302 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
2305 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2307 PR rtl-optimization/69886
2308 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
2309 argument. Use it when checking validity of set instructions.
2310 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
2311 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
2313 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
2314 * store-motion.c (find_moveable_store): Update
2315 can_assign_to_reg_without_clobbers_p callsite.
2317 2016-02-24 Richard Biener <rguenther@suse.de>
2320 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
2322 (record_nonwrapping_iv): Do not fall back to the low/high bound
2323 for non-constant IV bases if the stmt is not always executed.
2325 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2327 * config/arm/arm-cores.def (cortex-a32): New entry.
2328 * config/arm/arm-tables.opt: Regenerate.
2329 * config/arm/arm-tune.md: Regenerate.
2330 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
2331 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
2332 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
2333 for -mcpu and -mtune.
2335 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2338 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
2339 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
2340 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
2341 (atomic_loaddi_1): Delete.
2342 (atomic_loaddi): Rewrite expander using the above changes.
2344 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2347 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
2350 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2351 Richard Biener <rguenth@suse.de>
2354 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
2355 set_mem_attributes if tem is SSA_NAME which got expanded
2358 2016-02-24 Richard Biener <rguenther@suse.de>
2360 PR tree-optimization/69907
2361 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
2362 end of permutations for BB vectorization.
2364 2016-02-24 Christian Bruel <christian.bruel@st.com>
2366 * config/arm/arm-c.c (arm_option_override): Initialize
2367 target_option_current_node.
2368 * config/arm/arm.c (arm_pragma_target_parse): Replace
2369 build_target_option_node call by target_option_current_node.
2370 Set target_option_current_node.
2373 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
2376 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
2377 define_insn_and_split to define_insn.
2378 (zero_extendqi<mode>2_dot2): Same.
2379 (extendqi<mode>2_dot): Same.
2380 (extendqi<mode>2_dot2): Same.
2382 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
2384 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
2385 and add bypass for AES{D,E} and AESMC pairs.
2386 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
2389 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
2391 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
2392 series for reciprocal square root in Exynos M1.
2394 2016-02-23 Martin Sebor <msebor@redhat.com>
2397 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
2398 __builtin_alloca_with_align.
2400 2016-02-23 Richard Henderson <rth@redhat.com>
2402 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
2403 (ix86_register_pragmas): Remove __seg_tls.
2404 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
2405 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
2406 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
2407 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
2408 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
2409 * doc/extend.texi (__seg_tls): Remove item.
2411 2016-02-23 Richard Biener <rguenther@suse.de>
2413 * alloc-pool.h (struct allocation_object): Make id member
2414 conditional on CHECKING_P again.
2415 (get_instance): Adjust.
2416 (base_pool_allocator): Likewise.
2418 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
2420 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
2421 (parallelize_loops): In OpenACC kernels mode, set n_threads to
2423 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
2425 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
2427 2016-02-23 Richard Biener <rguenther@suse.de>
2429 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
2430 * bitmap.h (struct bitmap_usage): Likewise.
2431 (bitmap_move): Declare.
2432 * bitmap.c (register_overhead): Take size_t argument.
2433 (bitmap_move): New function.
2434 * df-problems.c (df_rd_transfer_function): Use bitmap_move
2435 to properly account overhead.
2436 * tree.c (free_node): Use tree_size.
2438 2016-02-23 Jakub Jelinek <jakub@redhat.com>
2441 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
2442 when inverting comparison.
2445 * common.opt (Wunreachable-code): Add Warning flag.
2447 2016-02-23 Mark Wielaard <mjw@redhat.com>
2448 Jakub Jelinek <jakub@redhat.com>
2451 * cgraphunit.c (check_global_declaration): Check main_input_filename
2452 and DECL_SOURCE_FILE are not NULL.
2454 2016-02-23 Martin Jambor <mjambor@suse.cz>
2456 PR tree-optimization/69666
2457 * tree-sra.c (sra_modify_assign): Do not attempt to create
2458 default_def replacements for unscalarizable regions.
2460 2016-02-20 Mark Wielaard <mjw@redhat.com>
2463 * cgraphunit.c (check_global_declaration): Check level of
2464 warn_unused_const_variable and main_input_filename.
2465 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
2466 (-Wunused-variable): For C implies -Wunused-const-variable=1.
2467 (-Wunused-const-variable): Explain levels 1 and 2.
2469 2016-02-22 Jakub Jelinek <jakub@redhat.com>
2472 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
2473 identical arguments. Formatting and spelling fixes.
2476 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
2481 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
2482 and m68k-devices.def.
2483 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
2484 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
2486 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
2488 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
2489 and HImode registers.
2491 2016-02-22 Richard Biener <rguenther@suse.de>
2493 PR tree-optimization/69882
2494 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
2495 preserve permutations present because of gaps.
2496 (vect_supported_load_permutation_p): Always continue checking
2497 permutations after vect_attempt_slp_rearrange_stmts.
2499 2016-02-22 Bin Cheng <bin.cheng@arm.com>
2501 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
2502 min_profitable_estimate, rather than min_profitable_iters.
2504 2016-02-22 Jakub Jelinek <jakub@redhat.com>
2507 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
2508 SImode for last match_operand.
2510 2016-02-22 Martin Liska <mliska@suse.cz>
2512 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
2513 return bitsize - 1 as the return value.
2515 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
2519 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
2520 Handle negative shift counts.
2521 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
2522 force_reg on the shift constant.
2523 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
2524 (lshrsi3_d): Handle negative shift counts.
2526 2016-02-22 Richard Biener <rguenther@suse.de>
2527 Tom de Vries <tom@codesourcery.com>
2529 * graph.c: Include dumpfile.h.
2530 (print_graph_cfg): Split into three overloads.
2531 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
2533 2016-02-22 Tom de Vries <tom@codesourcery.com>
2535 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
2538 2016-02-22 Richard Biener <rguenther@suse.de>
2541 * ipa-inline-transform.c (inline_call): When not updating
2542 overall summaries adjust self size by the growth estimate.
2543 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
2544 hash-set, do not update overall summaries here. Renamed from ...
2545 (inline_to_all_callers): ... this which is now wrapping the
2546 above and performing delayed overall summary update.
2547 (early_inline_small_functions): Delay updating of the overall
2550 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
2552 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
2555 2016-02-19 Jakub Jelinek <jakub@redhat.com>
2558 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
2559 :%* in %:gt() argument.
2560 (greater_than_spec_func): Adjust for expecting only numbers,
2561 if there are more than two numbers, compare the last two.
2563 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
2565 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
2566 -Wnarrowing with -std.
2568 2016-02-19 Jakub Jelinek <jakub@redhat.com>
2571 * expr.c (store_field): Don't use bit-field path if exp is
2572 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
2573 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
2574 and the assignment can be performed by bitwise copy. Formatting
2578 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
2579 call copy_reg_eh_region_note_forward on before and/or after sequences
2580 and remove note from insn if it no longer can throw.
2583 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
2586 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2588 * config/s390/vector.md: Add missing commutative operand markers
2589 to the patterns which qualify for one.
2590 * config/s390/vx-builtins.md: Likewise.
2592 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2594 * config/s390/vector.md (VI, VI_QHS): Add single element vector
2595 types to mode iterators.
2596 (vec_double): ... and mode attribute.
2597 * config/s390/vx-builtins.md (non_vec_int): Likewise.
2599 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2601 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
2602 Change the predicate of op2 from nonimmediate to general and let
2603 reload fix it if necessary.
2605 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2607 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
2609 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2611 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
2614 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2616 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
2617 * config/s390/s390.c (s390_expand_vec_movstr): New function.
2618 * config/s390/s390.md ("movstr<P:mode>"): Call
2619 s390_expand_vec_movstr.
2621 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2623 * config/s390/s390.md: Add missing output modifier for operand 1
2624 to print it as address properly.
2626 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2628 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
2629 * config/s390/2964.md: New file.
2630 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
2631 of insn grouping attributes depending on the CPU level.
2632 (s390_get_unit_mask): New function.
2633 (s390_sched_score): Remove the OOO from the scheduling macros.
2634 Add loop to calculate a score for the instruction mix.
2635 (s390_sched_reorder): Likewise plus improve debug output.
2636 (s390_sched_variable_issue): Rename macros as above. Calculate
2637 the unit distances after actually scheduling an insn. Improve
2639 (s390_sched_init): Clear last_scheduled_unit_distance array.
2640 * config/s390/s390.md: Include 2964.md.
2642 2016-02-18 Jakub Jelinek <jakub@redhat.com>
2645 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
2646 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
2647 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
2648 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
2649 *avx512f_<code>v8div16qi2_mask_1): New insns.
2651 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2654 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
2657 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
2658 earlyclobber from target. Use wF constraint for fused memory
2660 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
2662 2016-02-18 Jakub Jelinek <jakub@redhat.com>
2663 Martin Liska <mliska@suse.cz>
2666 * cfgexpand.c (asan_sanitize_stack_p): New function.
2667 (partition_stack_vars): Use the function.
2668 (expand_stack_vars): Likewise.
2669 (defer_stack_allocation): Likewise.
2670 (expand_used_vars): Likewise.
2672 2016-02-18 Richard Biener <rguenther@suse.de>
2675 * fold-const.c (operand_equal_p): Properly compare offsets for
2676 IMAGPART_EXPR and ARRAY_REF.
2678 2016-02-18 Nick Clifton <nickc@redhat.com>
2682 * config/arm/arm.c (arm_option_override_internal): Disable
2683 interworking if the target does not support thumb instructions.
2684 (arm_reload_in_hi): Handle the case where a register to register
2685 move needs reloading because there is no simple pattern to handle
2687 (arm_reload_out_hi): Likewise.
2689 2016-02-18 Richard Biener <rguenther@suse.de>
2692 * match.pd: Don't use fold_binary or fold_unary for folding
2695 2016-02-17 Jakub Jelinek <jakub@redhat.com>
2698 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
2699 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
2700 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
2701 warn on gimple_no_warning_p statements.
2703 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
2705 * doc/extend.texi (C++ Attributes): Correct description of
2706 warn_unused type attribute.
2708 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2710 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
2711 correct instruction.
2713 2016-02-17 Richard Biener <rguenther@suse.de>
2715 PR rtl-optimization/69609
2716 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
2717 (find_traces_1_round): When ending a trace update cached priority
2719 (bb_to_key): Use cached priority when available.
2720 (copy_bb): Initialize cached priority.
2721 (reorder_basic_blocks_software_trace_cache): Likewise.
2723 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2726 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
2728 (aarch64_comparison_operator): Break overly long line into two.
2729 (aarch64_comparison_operation): Likewise.
2730 * config/aarch64/aarch64.md (cstorecc4): Use
2731 aarch64_comparison_operator_mode instead of
2732 aarch64_comparison_operator.
2733 (cstore<mode>4): Likewise.
2734 (aarch64_cstore<mode>): Likewise.
2735 (*cstoresi_insn_uxtw): Likewise.
2736 (cstore<mode>_neg): Likewise.
2737 (*cstoresi_neg_uxtw): Likewise.
2739 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2742 * config/arm/predicates.md (arm_comparison_operator_mode):
2744 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
2745 instead of arm_comparison_operator.
2746 (*mov_negscc): Likewise.
2747 (*mov_notscc): Likewise.
2748 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
2749 (*thumb2_mov_negscc): Likewise.
2750 (*thumb2_mov_negscc_strict_it): Likewise.
2751 (*thumb2_mov_notscc): Likewise.
2752 (*thumb2_mov_notscc_strict_it): Likewise.
2754 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
2756 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
2759 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
2761 * config/visium/visium.c (machine_libfunc_index): New enum.
2762 (machine_libfuncs): New structure.
2763 (visium_libfuncs): New static variable.
2764 (TARGET_INIT_LIBFUNCS): Define to...
2765 (visium_init_libfuncs): ...this. New function.
2766 (expand_block_move_4): Use the appropriate libfunc.
2767 (expand_block_move_2): Likewise.
2768 (expand_block_move_1): Likewise.
2769 (expand_block_set_4): Likewise.
2770 (expand_block_set_2): Likewise.
2771 (expand_block_set_1): Likewise.
2772 (visium_trampoline_init): Likewise.
2774 2016-02-17 Nick Clifton <nickc@redhat.com>
2776 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
2777 TI's devices.csv file as of March 2016.
2779 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
2782 * opts-global.c (handle_common_deferred_options): Introduce and
2783 initialize two global variables to remember command-line options
2784 specifying a stack-limiting register.
2785 * opts.h: Add extern declarations of the two new global variables.
2786 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
2787 variable based on the values of the two new global variables.
2789 2016-02-16 Jakub Jelinek <jakub@redhat.com>
2792 * common.opt (Wnonnull-compare): New warning.
2793 * doc/invoke.texi (-Wnonnull): Remove text about comparison
2794 of arguments against NULL.
2795 (-Wnonnull-compare): Document.
2796 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
2797 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
2798 * passes.def (pass_warn_nonnull_compare): Add.
2799 * gimple-ssa-nonnull-compare.c: New file.
2801 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
2803 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
2804 AARCH64_EXTRA_TUNE_RECIP_SQRT.
2806 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
2808 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
2809 reciprocal sqrt for -mlow-precision-recip-sqrt.
2811 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
2812 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2814 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
2815 always use lane loads to construct non-constant vectors.
2817 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
2819 * config/aarch64/aarch64.md
2820 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
2821 constraints for operand 3.
2822 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
2824 2016-02-16 Jakub Jelinek <jakub@redhat.com>
2825 Richard Biener <rguenther@suse.de>
2827 PR tree-optimization/69820
2828 * tree-vect-patterns.c (type_conversion_p): Return false if
2829 *orig_type is unsigned single precision or boolean.
2830 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
2833 2016-02-16 Jakub Jelinek <jakub@redhat.com>
2835 PR rtl-optimization/69764
2836 PR rtl-optimization/69771
2837 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
2838 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
2840 2016-02-16 Richard Biener <rguenther@suse.de>
2842 PR tree-optimization/69776
2843 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
2845 (indirect_refs_may_alias_p): Likewise.
2846 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
2847 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
2848 according to tbaa_p.
2849 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
2850 (optimize_stmt): For redundant store discovery do not allow tbaa.
2852 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
2854 PR tree-optimization/69714
2855 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
2856 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
2858 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
2860 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
2861 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
2862 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
2863 * config/arc/arc.c (arc_init): Check FPU options.
2864 (get_arc_condition_code): Handle new CC_FPU* modes.
2865 (arc_select_cc_mode): Likewise.
2866 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
2867 register pair only. Allow access for ARCv2 accumulator.
2868 (gen_compare_reg): Whenever we have FPU support use FPU compare
2870 (arc_reorg): Don't generate brcc insns when FPU compare
2871 instructions are involved.
2872 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
2873 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
2874 floating point emulation.
2875 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
2876 (REVERSE_CONDITION): Add new CC_FPU* modes.
2877 (TARGET_FP_SP_BASE): Define.
2878 (TARGET_FP_DP_BASE): Likewise.
2879 (TARGET_FP_SP_FUSED): Likewise.
2880 (TARGET_FP_DP_FUSED): Likewise.
2881 (TARGET_FP_SP_CONV): Likewise.
2882 (TARGET_FP_DP_CONV): Likewise.
2883 (TARGET_FP_SP_SQRT): Likewise.
2884 (TARGET_FP_DP_SQRT): Likewise.
2885 (TARGET_FP_DP_AX): Likewise.
2886 * config/arc/arc.md (ARCV2_ACC): New constant.
2887 (type): New fpu type attribute.
2888 (SDF): Conditional iterator.
2889 (cstore<mode>, cbranch<mode>): Change expand condition.
2890 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
2891 handles FPU/FPX cases as well.
2892 * config/arc/arc.opt (mfpu): New option.
2893 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
2895 (adddf3, muldf3, subdf3): Removed.
2896 * config/arc/predicates.md (proper_comparison_operator): Recognize
2898 * config/arc/fpu.md: New file.
2899 * doc/invoke.texi (ARC Options): Document mfpu option.
2901 2016-02-16 Richard Biener <rguenther@suse.de>
2903 PR rtl-optimization/69291
2904 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
2905 noce_operand_ok check.
2907 2016-02-16 Tom de Vries <tom@codesourcery.com>
2910 * omp-low.c (simd_clone_create): Remove call to
2911 symtab->call_cgraph_insertion_hooks.
2913 2016-02-16 Jakub Jelinek <jakub@redhat.com>
2915 PR tree-optimization/69802
2916 * tree-ssa-reassoc.c (update_range_test): If op is
2917 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
2918 op == 1 test of precision 1 integral op, otherwise handle
2919 that case as op itself. Fix up formatting.
2920 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
2923 2016-02-16 Richard Biener <rguenther@suse.de>
2925 PR tree-optimization/69586
2926 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
2927 types for conversion sources.
2929 2016-02-16 Richard Biener <rguenther@suse.de>
2932 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
2933 mask OEP_ADDRESS_OF.
2935 2016-02-16 Alan Modra <amodra@gmail.com>
2938 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
2939 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
2940 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
2942 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
2943 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
2944 (p8_fmrgow_<mode>): Likewise.
2945 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
2947 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
2948 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
2949 to use movdi_internal64. Remove op0_di.
2950 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
2952 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
2954 Add support for the FCCMP insn types
2956 * config/aarch64/aarch64.md (fccmp): Change insn type.
2958 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
2959 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
2960 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
2961 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
2962 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
2963 * config/arm/types.md (fccmps): Add new insn type.
2966 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
2968 * alias.c (get_alias_set): Fix a typo in comment.
2970 2016-02-15 Richard Biener <rguenther@suse.de>
2972 PR tree-optimization/69595
2973 * match.pd: Complete range test simplification to true.
2975 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
2977 PR rtl-optimization/69648
2978 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
2979 pic_offset_table_rtx.
2981 PR rtl-optimization/69752
2982 * ira.c (update_equiv_regs): When looking for more than a single SET,
2983 also take other side effects into account.
2985 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
2987 * config/s390/s390.c (s390_function_profiler): Add a new sequence
2988 for z900+ CPUs in 31-bit mode.
2990 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
2992 * common/config/s390/s390-common.c (s390_supports_split_stack):
2994 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
2995 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
2996 * config/s390/s390.c (struct machine_function): New field
2997 split_stack_varargs_pointer.
2998 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
2999 in s390_emit_prologue.
3000 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
3002 (morestack_ref): New global.
3003 (SPLIT_STACK_AVAILABLE): New macro.
3004 (s390_expand_split_stack_prologue): New function.
3005 (s390_live_on_entry): New function.
3006 (s390_va_start): Use split-stack vararg pointer if appropriate.
3007 (s390_asm_file_end): Emit the split-stack note sections.
3008 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
3009 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
3010 (UNSPECV_SPLIT_STACK_CALL): New unspec.
3011 (UNSPECV_SPLIT_STACK_DATA): New unspec.
3012 (split_stack_prologue): New expand.
3013 (split_stack_space_check): New expand.
3014 (split_stack_data): New insn.
3015 (split_stack_call): New expand.
3016 (split_stack_call_*): New insn.
3017 (split_stack_cond_call): New expand.
3018 (split_stack_cond_call_*): New insn.
3020 2016-02-15 Richard Biener <rguenther@suse.de>
3022 PR tree-optimization/69783
3023 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3024 Add trivially correct cases.
3026 2016-02-15 Tom de Vries <tom@codesourcery.com>
3029 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
3031 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
3033 2016-02-15 Richard Biener <rguenther@suse.de>
3035 PR tree-optimization/69776
3036 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
3037 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
3038 indicate whether we can use TBAA to disambiguate against stores.
3039 Use alias-set zero if not.
3040 (visit_reference_op_store): Do not use TBAA when looking up
3042 * tree-ssa-pre.c (compute_avail): Use TBAA here.
3043 (eliminate_dom_walker::before_dom_children): But not when looking
3044 up redundant stores.
3046 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
3048 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
3050 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3052 * config/i386/znver1.md
3053 (znver1_pop, znver1_pop_mem,
3054 znver1_load_imov_double_store,
3055 znver1_load_imov_direct_store,
3056 znver1_load_imov_direct_load,
3057 znver1_load_imov_double_load): Add new.
3058 (znver1_insn, znver1_insn_load): Add icmov type.
3060 znver1_sseavx_fma_load,
3062 znver1_avx256_fma_load): Fix pipe usage.
3064 2016-02-14 Alan Modra <amodra@gmail.com>
3067 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
3068 with an invalid hard reg, reload just the reg not the entire
3069 pre/post-inc/dec address expression.
3071 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
3074 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
3075 fixed R1_REG scratch reg.
3076 (sibcall_value_pcrel_fdpic): Likewise.
3078 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
3082 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
3084 2016-02-12 Walter Lee <walt@tilera.com>
3086 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
3087 * config/tilegx/t-tilegx: Likewise.
3089 2016-02-12 David Malcolm <dmalcolm@redhat.com>
3092 * diagnostic-show-locus.c (struct line_span): New struct.
3093 (layout::get_first_line): Delete.
3094 (layout::get_last_line): Delete.
3095 (layout::get_num_line_spans): New member function.
3096 (layout::get_line_span): Likewise.
3097 (layout::print_heading_for_line_span_index_p): Likewise.
3098 (layout::get_expanded_location): Likewise.
3099 (layout::calculate_line_spans): Likewise.
3100 (layout::m_first_line): Delete.
3101 (layout::m_last_line): Delete.
3102 (layout::m_line_spans): New field.
3103 (layout::layout): Update comment. Replace m_first_line and
3104 m_last_line with m_line_spans, replacing their initialization
3105 with a call to calculate_line_spans.
3106 (diagnostic_show_locus): When printing source lines and
3107 annotations, rather than looping over a single span
3108 of lines, instead loop over each line_span within
3109 the layout, with an inner loop over the lines within them.
3110 Call the context's start_span callback when changing line spans.
3111 * diagnostic.c (diagnostic_initialize): Initialize start_span.
3112 (diagnostic_build_prefix): Break out the building of the location
3113 part of the string into...
3114 (diagnostic_get_location_text): ...this new function, rewriting
3115 it from nested ternary expressions to a sequence of "if"
3117 (default_diagnostic_start_span_fn): New function.
3118 * diagnostic.h (diagnostic_start_span_fn): New typedef.
3119 (diagnostic_context::start_span): New field.
3120 (default_diagnostic_start_span_fn): New prototype.
3122 2016-02-12 David Malcolm <dmalcolm@redhat.com>
3125 * gcc.c (driver::finalize): Fix cleanup of "specs".
3127 2016-02-12 David Malcolm <dmalcolm@redhat.com>
3131 * gcc.c (driver::driver): Initialize m_option_suggestions.
3132 (driver::~driver): Clean up m_option_suggestions.
3133 (suggest_option): Convert to...
3134 (driver::suggest_option): ...this, and split out into
3135 driver::build_option_suggestions and find_closest_string.
3136 (driver::build_option_suggestions): New function, from
3137 first half of suggest_option. Special-case
3138 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
3139 the sanitizer_opts array. For options of enum types, add the
3140 various enum values to the candidate strings.
3141 (driver::handle_unrecognized_options): Remove "const".
3142 * gcc.h (driver::handle_unrecognized_options): Likewise.
3143 (driver::build_option_suggestions): New decl.
3144 (driver::suggest_option): New decl.
3145 (driver::m_option_suggestions): New field.
3146 * opts-common.c (add_misspelling_candidates): New function.
3147 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
3148 and make non-static.
3149 * opts.h (sanitizer_opts): New array decl.
3150 (add_misspelling_candidates): New function decl.
3151 * spellcheck.c (find_closest_string): New function.
3152 * spellcheck.h (find_closest_string): New function decl.
3154 2016-02-12 Jakub Jelinek <jakub@redhat.com>
3156 PR rtl-optimization/69764
3157 PR rtl-optimization/69771
3158 * optabs.c (expand_binop_directly): For shift_optab_p, force
3159 convert_modes with VOIDmode if xop1 has VOIDmode.
3161 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3164 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
3165 to correctly determine instrumentation thunks.
3167 2016-02-12 Jakub Jelinek <jakub@redhat.com>
3170 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
3171 type by reference, force lhs on the call.
3174 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
3175 Compute retval and retbnd early in all cases if split_part_return_p
3176 and return_bb is not EXIT. Remove all clobber stmts and reset
3177 all debug stmts that refer to SSA_NAMEs defined in split part,
3178 except if it is retval, in that case replace the old retval with the
3179 lhs of the call to the split part.
3181 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3184 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3187 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
3188 whose result is used in PHI.
3189 (maybe_optimize_range_tests): Likewise.
3190 (final_range_test_p): Likweise.
3192 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3195 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
3196 whose result is used in PHI.
3197 (maybe_optimize_range_tests): Likewise.
3198 (final_range_test_p): Likweise.
3200 2016-02-12 Jakub Jelinek <jakub@redhat.com>
3202 * cgraph.c: Spelling fixes - behaviour -> behavior and
3203 neighbour -> neighbor.
3204 * target.def: Likewise.
3205 * sel-sched.c: Likewise.
3206 * config/mips/mips.c: Likewise.
3207 * config/arc/arc.md: Likewise.
3208 * config/arm/cortex-a57.md: Likewise.
3209 * config/arm/arm.c: Likewise.
3210 * config/arm/neon.md: Likewise.
3211 * config/arm/arm-c.c: Likewise.
3212 * config/vms/vms-c.c: Likewise.
3213 * config/s390/s390.c: Likewise.
3214 * config/i386/znver1.md: Likewise.
3215 * config/i386/i386.c: Likewise.
3216 * config/ia64/hpux-unix2003.h: Likewise.
3217 * config/msp430/msp430.md: Likewise.
3218 * config/rx/rx.c: Likewise.
3219 * config/rx/rx.md: Likewise.
3220 * config/aarch64/aarch64-simd.md: Likewise.
3221 * config/aarch64/aarch64.c: Likewise.
3222 * config/nvptx/nvptx.c: Likewise.
3223 * config/bfin/bfin.c: Likewise.
3224 * config/cris/cris.opt: Likewise.
3225 * config/rs6000/rs6000.c: Likewise.
3226 * target.h: Likewise.
3227 * spellcheck.c: Likewise.
3228 * ira-build.c: Likewise.
3229 * tree-inline.c: Likewise.
3230 * builtins.c: Likewise.
3231 * lra-constraints.c: Likewise.
3232 * explow.c: Likewise.
3233 * hwint.h: Likewise.
3234 * targhooks.c: Likewise.
3235 * tree-vect-data-refs.c: Likewise.
3237 * doc/tm.texi: Likewise.
3238 * doc/extend.texi: Likewise.
3239 * doc/install.texi: Likewise.
3240 * doc/md.texi: Likewise.
3241 * tree-ssa-tail-merge.c: Likewise.
3242 * sched-int.h: Likewise.
3243 * match.pd: Likewise.
3244 * sched-ebb.c: Likewise.
3245 * target.def (omit_struct_return_reg): Likewise.
3246 * gimple-ssa-isolate-paths.c: Likewise.
3247 (find_implicit_erroneous_behaviour): Renamed to...
3248 (find_implicit_erroneous_behavior): ... this.
3249 (find_explicit_erroneous_behaviour): Renamed to...
3250 (find_explicit_erroneous_behavior): ... this.
3251 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
3253 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
3255 PR rtl-optimization/64682
3256 PR rtl-optimization/69567
3257 PR rtl-optimization/69737
3258 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
3259 in I2 as well, just lose it.
3261 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3263 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
3265 (aarch64_last_printed_tune_string): Likewise.
3266 (aarch64_declare_function_name): Only output .arch assembler
3267 directive if it will be different from the previously output
3268 directive. Same for .tune comment but only if -dA is set.
3269 (aarch64_start_file): New function.
3270 (TARGET_ASM_FILE_START): Define.
3272 2016-02-11 David Malcolm <dmalcolm@redhat.com>
3275 * Makefile.in (PLUGIN_HEADERS): Add params.list.
3277 2016-02-11 Jakub Jelinek <jakub@redhat.com>
3280 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
3281 -Wmaybe-uninitialized warning.
3283 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
3286 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
3288 2016-02-11 Richard Biener <rguenther@suse.de>
3290 PR rtl-optimization/69291
3291 * ifcvt.c (noce_try_store_flag_constants): Do not allow
3292 subexpressions affected by changing the result.
3294 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
3297 * lra-constraints.c (curr_insn_transform): Find in/out operands
3298 for secondary memory moves. Update dups.
3300 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
3302 PR tree-optimization/69652
3303 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
3304 to nested loop, did source re-formatting, skip debug statements,
3305 add check on statement with volatile operand, remove dead scalar
3308 2016-02-10 Jakub Jelinek <jakub@redhat.com>
3309 Patrick Palka <ppalka@gcc.gnu.org>
3313 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
3314 calls if the return type is TREE_ADDRESSABLE.
3315 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
3316 * ipa-split.c (split_function): Fix doubled "we" in comment.
3317 Use void return type for the split part even if
3318 !split_point->split_part_set_retval.
3320 2016-02-10 Bin Cheng <bin.cheng@arm.com>
3322 PR tree-optimization/68021
3323 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
3324 when computing the value of biv cand by itself.
3326 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
3328 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
3329 (cortexa57_tunings): Likewise.
3330 (cortexa72_tunings): Likewise.
3331 (arch_macro_fusion_pair_p): Add support for AES fusion.
3332 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
3333 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
3334 Allow virtual registers before reload so early scheduling works.
3335 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
3336 correct latency and pipeline.
3337 (cortex_a57_crypto_complex): Likewise.
3338 (cortex_a57_crypto_xor): Likewise.
3339 (define_bypass): Add AES bypass.
3341 2016-02-10 Richard Biener <rguenther@suse.de>
3343 PR tree-optimization/69726
3344 * passes.def: Add DCE pass before late uninit.
3345 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
3346 really fixup if-conversions job.
3348 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
3350 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
3351 (arm_cortex_a57_tune): Likewise.
3352 (aarch_macro_fusion_pair_p): Add support for AES fusion.
3353 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
3355 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
3357 * timevar.def (TV_PHASE_DBGINFO): Delete.
3358 (TV_PHASE_CHECK_DBGINFO): Likewise.
3359 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
3361 2016-02-10 Richard Biener <rguenther@suse.de>
3363 PR tree-optimization/69719
3364 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3365 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
3367 2016-02-09 Andrew Pinski <apinski@cavium.com>
3370 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
3371 get_vcond_mask_icode returns false.
3373 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3376 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
3377 an ADDIS that adds a pointer to a large constant that sets the
3378 upper16 bits with a load operation.
3380 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
3383 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
3385 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
3387 (vzipq_s16): Likewise.
3388 (vzipq_s32): Likewise.
3389 (vzipq_f32): Likewise.
3390 (vzipq_u8): Likewise.
3391 (vzipq_u16): Likewise.
3392 (vzipq_u32): Likewise.
3393 (vzipq_p8): Likewise.
3394 (vzipq_p16): Likewise.
3396 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
3399 * config/arm/arm.c (neon_endian_lane_map): New function.
3400 (neon_vector_pair_endian_lane_map): New function.
3401 (arm_evpc_neon_vuzp): Allow for big endian lane order.
3402 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
3404 (vuzpq_s16): Likewise.
3405 (vuzpq_s32): Likewise.
3406 (vuzpq_f32): Likewise.
3407 (vuzpq_u8): Likewise.
3408 (vuzpq_u16): Likewise.
3409 (vuzpq_u32): Likewise.
3410 (vuzpq_p8): Likewise.
3411 (vuzpq_p16): Likewise.
3413 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
3416 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
3419 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
3421 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
3422 truncate const_int operand 1 to QImode.
3424 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
3426 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
3427 corresponding to an abnormal edge.
3429 2016-02-09 Tom de Vries <tom@codesourcery.com>
3431 PR tree-optimization/69599
3432 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
3434 (find_func_aliases_for_builtin_call, find_func_clobbers)
3435 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
3438 2016-02-09 Richard Biener <rguenther@suse.de>
3440 PR tree-optimization/69715
3441 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
3442 LHS on calls as non-rewritable.
3444 2016-02-09 Tom de Vries <tom@codesourcery.com>
3447 * lto-wrapper.c (append_diag_options): New function.
3448 (compile_offload_image): Call append_diag_options.
3450 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
3453 * doc/extend.texi (Flag Output Operands): Correct sectioning.
3454 Minor copy-edit to fix verb tenses.
3456 2016-02-08 Jakub Jelinek <jakub@redhat.com>
3458 PR tree-optimization/69209
3459 * ipa-split.c (split_function): If split part is not
3460 returning retval, retval has gimple type but is not
3461 gimple value, force it into a SSA_NAME first.
3463 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
3465 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
3468 2016-02-08 Jason Merrill <jason@redhat.com>
3471 * convert.c (convert_to_integer_1): Check dofold on truncation
3473 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
3474 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
3475 Rename from *_nofold.
3476 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
3477 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
3479 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
3482 * tree.c (build_common_tree_nodes): Remove short_double argument.
3483 All callers changed.
3484 * tree.h (build_common_tree_nodes): Adjust declaration.
3485 * doc/invoke.texi (-fshort-double): Remove documentation.
3486 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3487 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
3488 * lto-wrapper.c (merge_and_complain, append_compiler_options)
3489 (append_linker_options): Don't handle OPT_fshort_double.
3491 PR rtl-optimization/68730
3492 * lra-remat.c (insn_to_cand_activation): New static variable.
3493 (lra_remat): Allocate and free it.
3494 (create_cand): New arg activation. Initialize a field in
3495 insn_to_cand_activation if it is nonnull.
3496 (create_cands): Pass the activation insn to create_cand when making
3497 a candidate involving an output reload. Reorganize code a little.
3498 (do_remat): Keep track of active status of candidates in a separate
3501 2016-02-08 Richard Biener <rguenther@suse.de>
3503 PR tree-optimization/69719
3504 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3505 Properly use absolute of the difference of the two offsets to
3506 compare or adjust the segment length.
3508 2016-02-08 Richard Biener <rguenther@suse.de>
3509 Jeff Law <law@redhat.com>
3512 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
3513 types for anonymous SSA names.
3515 2016-02-08 Richard Biener <rguenther@suse.de>
3517 PR rtl-optimization/69274
3518 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
3520 2016-02-08 Jeff Law <law@redhat.com>
3522 PR tree-optimization/65917
3523 * tree-ssa-dom.c (record_temporary_equivalences): Record both
3524 equivalences from if (x == y) style conditionals.
3525 (loop_depth_of_name): Remove.
3526 (record_equality): Remove loop depth check.
3527 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
3528 (const_and_copies::record_const_or_copy_raw): New member function.
3529 * tree-ssa-scopedtables.c
3530 (const_and_copies::record_const_or_copy_raw): New, factored out of
3531 (const_and_copies::record_const_or_copy): Call new member function.
3533 2016-02-05 Jeff Law <law@redhat.com>
3535 PR tree-optimization/68541
3536 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
3537 (count_stmts_in_block): New function.
3538 (poor_ifcvt_candidate_code): Likewise.
3539 (is_feasible_trace): Add some heuristics to determine when path
3540 splitting is profitable.
3541 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
3542 is a diamond with a single exit.
3544 2016-02-05 Martin Sebor <msebor@redhat.com>
3547 * doc/invoke.texi: Update -Wplacement-new to take an optional
3550 2016-02-06 Richard Henderson <rth@redhat.com>
3553 * tree.c (tree_nop_conversion_p): Do not strip casts into or
3554 out of non-standard address spaces.
3556 2016-02-05 Jakub Jelinek <jakub@redhat.com>
3558 PR rtl-optimization/69691
3559 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
3561 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
3563 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
3564 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
3565 (*ieee128_mfvsrd_64bit): Likewise.
3566 (*ieee128_mfvsrd_32bit): Likewise.
3568 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
3572 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3574 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
3575 instrumented_version.
3577 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
3579 * doc/invoke.texi (Optimize Options): In table of --param options
3580 rename second occurrence of tracer-min-branch-ratio to
3581 tracer-min-branch-probability, rename
3582 tracer-min-branch-ratio-feedback to
3583 tracer-min-branch-probability-feedback and clarify description,
3584 rename sched-spec-state-edge-prob-cutoff to
3585 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
3586 to selsched-insns-to-rename, rename lto-minpartition to
3587 lto-min-partition, delete reorder-blocks-duplicate and
3588 reorder-blocks-duplicate-feedback.
3590 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3592 * config/s390/s390.c (s390_register_info_set_ranges): Remove
3595 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
3597 * doc/extend.texi: S/390: Correct some typos.
3599 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3601 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
3603 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3606 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
3607 (s390_register_info_gprtofpr): Use new macros above.
3608 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
3610 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
3611 its name. Adjust restore and save gpr ranges.
3612 (s390_register_info_set_ranges): New function.
3613 (s390_register_info): Use new macros above. Call
3614 s390_register_info_set_ranges.
3615 (s390_optimize_register_info): Likewise.
3616 (s390_hard_regno_rename_ok): Use new macros.
3617 (s390_hard_regno_scratch_ok): Likewise.
3618 (s390_emit_epilogue): Likewise.
3619 (s390_can_use_return_insn): Likewise.
3620 (s390_optimize_prologue): Likewise.
3621 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
3623 2016-02-05 Jakub Jelinek <jakub@redhat.com>
3626 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
3628 (ix86_option_override_internal): Disable TARGET_STV even for
3629 -m{incoming,preferred}-stack-boundary=3.
3631 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3633 * config.gcc: Mark deprecated rtems targets as obsolete.
3635 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
3637 PR rtl-optimization/64682
3638 PR rtl-optimization/69567
3639 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
3640 before I2 only if the register is both used and set in I2.
3642 2016-02-04 DJ Delorie <dj@redhat.com>
3644 * config/msp430/msp430.c (msp430_start_function): Add function type.
3646 2016-02-04 Jakub Jelinek <jakub@redhat.com>
3649 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
3651 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
3653 PR rtl-optimization/69577
3655 2015-10-29 Richard Henderson <rth@redhat.com>
3659 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
3660 sse check to the exact conditions of PR 67609.
3662 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
3665 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
3666 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
3667 not allowed into the traditional Altivec registers.
3668 (movtd_64bit_nodm): Likewise.
3669 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3671 2016-02-04 David Malcolm <dmalcolm@redhat.com>
3673 * config/aarch64/cortex-a57-fma-steering.c
3674 (aarch64_register_fma_steering): Remove "static" from arguments
3677 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
3680 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
3683 2016-02-04 Mike Frysinger <vapier@gentoo.org>
3685 * doc/invoke.texi: Delete -mno-fma4.
3687 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
3689 PR rtl-optimization/69577
3690 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
3691 (find_subregs_of_mode): Update accordingly. Iterate over partial
3694 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
3696 * config/arm/arm-protos.h (neon_reinterpret): Remove.
3697 * config/arm/arm.c (neon_reinterpret): Remove.
3698 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
3699 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
3700 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
3701 vreinterpretti): Remove.
3702 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
3703 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
3704 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
3705 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
3706 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
3707 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
3708 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
3709 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
3710 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
3711 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
3712 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
3713 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
3714 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
3715 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
3716 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
3717 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
3718 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
3719 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
3720 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
3721 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
3722 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
3723 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
3724 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
3725 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
3726 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
3727 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
3728 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
3729 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
3730 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
3731 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
3732 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
3733 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
3734 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
3735 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
3736 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
3737 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
3738 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
3739 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
3740 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
3741 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
3742 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
3743 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
3744 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
3745 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
3746 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
3747 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
3748 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
3749 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
3750 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
3751 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
3752 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
3753 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
3754 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
3755 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
3756 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
3757 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
3758 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
3759 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
3760 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
3761 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
3762 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
3763 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
3764 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
3765 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
3766 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
3767 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
3768 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
3769 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
3770 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
3771 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
3772 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
3773 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
3774 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
3775 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
3776 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
3777 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
3778 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
3779 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
3780 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
3781 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
3782 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
3783 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
3784 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
3785 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
3786 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
3787 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
3788 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
3789 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
3790 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
3791 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
3792 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
3793 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
3794 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
3795 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
3796 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
3797 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
3798 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
3799 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
3800 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
3801 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
3802 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
3803 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
3804 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
3806 2016-02-04 Martin Liska <mliska@suse.cz>
3809 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
3810 that are gimple_store_p.
3811 (maybe_instrument_call): Likewise.
3813 2016-02-04 Bin Cheng <bin.cheng@arm.com>
3815 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
3816 register scaling out of memory reference and comment why.
3818 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3822 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
3823 folding the source of a SET.
3825 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3829 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
3830 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
3832 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
3836 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
3839 2016-02-04 Christian Bruel <christian.bruel@st.com>
3841 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
3842 * config/arm/arm.c (arm_set_current_function): Likewise.
3844 2016-02-04 Jakub Jelinek <jakub@redhat.com>
3845 Ilya Enkovich <enkovich.gnu@gmail.com>
3846 H.J. Lu <hongjiu.lu@intel.com>
3849 * config/i386/i386.c (convert_scalars_to_vector): Remove
3850 stack alignment fixes.
3851 (ix86_option_override_internal): Disable TARGET_STV if stack
3852 might not be aligned enough.
3853 (ix86_minimum_alignment): Assert that TARGET_STV is false.
3855 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
3857 * gcc/config/i386/x86-tune.def: Disable default prefetching
3860 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3861 Vladimir Makarov <vmakarov@redhat.com>
3864 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
3865 in validating fused toc addresses.
3867 2016-02-03 Jakub Jelinek <jakub@redhat.com>
3870 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
3871 range->m_caret fields if range->m_show_caret_p is false.
3874 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
3875 Force oldval into register if it does not satisfy reg_or_short_operand
3876 predicate. Fix up formatting.
3878 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
3879 Alexandre Oliva <aoliva@redhat.com>
3882 * lra-constraints.c (simplify_operand_subreg): Check additionally
3883 address validity after potential reloading.
3884 (process_address_1): Check insns validity. In case of failure do
3887 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
3890 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
3893 2016-02-02 Jakub Jelinek <jakub@redhat.com>
3895 * wide-int.cc (canonize_uhwi): New function.
3896 (wi::divmod_internal): Use it.
3898 2016-02-02 James Norris <jnorris@codesourcery.com
3900 * gimplify.c (omp_notice_variable): Add usage check.
3902 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
3904 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
3905 like LE, GE, LT, GT when emitting relational operator.
3907 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
3909 * ira-costs.c (find_costs_and_classes): Add extra argument.
3910 * target.def (ira_change_pseudo_allocno_class): Add parameter.
3911 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
3912 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
3913 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
3914 Add best_class parameter, and return it if not ALL_REGS.
3915 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
3917 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
3920 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
3922 * config/aarch64/aarch64.c
3923 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
3924 (aarch64_ira_change_pseudo_allocno_class): New function.
3926 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
3929 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
3931 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3933 * config/avr/avr.c (avr_option_override): Set
3934 PARAM_ALLOW_STORE_DATA_RACES to 1.
3936 2016-02-02 Richard Biener <rguenther@suse.de>
3938 PR tree-optimization/69595
3939 * match.pd: Add range test simplifications to true/false.
3941 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
3943 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
3944 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
3947 2016-02-02 Richard Biener <rguenther@suse.de>
3949 PR tree-optimization/69606
3950 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
3951 info on the result before moving a stmt.
3953 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
3956 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
3957 branch with vector comparison.
3958 * config/i386/sse.md (VI48_AVX): New mode iterator.
3959 (define_expand "cbranch<mode>4): Add support for conditional branch
3960 with vector comparison.
3961 * tree-vect-loop.c (optimize_mask_stores): New function.
3962 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
3963 has_mask_store field of vect_info.
3964 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
3965 vectorized loops having masked stores after vec_info destroy.
3966 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
3967 correspondent macros.
3968 (optimize_mask_stores): Add prototype.
3970 2016-02-02 Alan Modra <amodra@gmail.com>
3973 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
3976 2016-02-02 Alan Modra <amodra@gmail.com>
3979 * config/rs6000/rs6000.c (need_toc_init): New var, set it
3980 whenever toc_label_name used.
3981 (rs6000_file_start): Don't set up toc section here,
3982 (rs6000_output_function_epilogue): do so here instead,
3983 (rs6000_xcoff_file_start): and here.
3984 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
3985 (load_toc_aix_di): Likewise.
3987 2016-02-01 Jakub Jelinek <jakub@redhat.com>
3989 PR rtl-optimization/69592
3990 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
3991 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
3992 (num_sign_bit_copies_binary_arith_p): New inline function.
3993 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
3995 2016-02-01 Jeff Law <law@redhat.com>
3997 PR tree-optimization/69580
3998 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
3999 * tree-ssa-threadbackward.c
4000 (fsm_find_control_statement_thread_paths): Do not try to walk
4001 through large PHI nodes.
4003 2016-02-01 Jakub Jelinek <jakub@redhat.com>
4005 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
4006 when count is incremented above limit, don't analyze further
4009 * omp-low.c (oacc_parse_default_dims): Avoid
4010 -Wsign-compare warning, make sure value fits into int
4011 rather than just unsigned int.
4013 2016-02-01 Bin Cheng <bin.cheng@arm.com>
4015 PR tree-optimization/67921
4016 * fold-const.c (split_tree): New parameters. Convert pointer
4017 type variable part to proper type before negating.
4018 (fold_binary_loc): Pass new arguments to split_tree.
4020 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4022 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
4023 (nvptx_goacc_validate_dims): Extend to handle global defaults.
4024 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
4025 * doc/tm.texti: Rebuilt.
4026 * doc/invoke.texi (fopenacc-dim): Document.
4027 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
4028 (append_compiler_options): Likewise.
4029 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
4030 (oacc_parse_default_dims): New.
4031 (oacc_validate_dims): Add USED arg. Select non-unity default when
4033 (oacc_loop_fixed_partitions): Return mask of used partitions.
4034 (oacc_loop_auto_partitions): Emit dump info.
4035 (oacc_loop_partition): Return mask of used partitions.
4036 (execute_oacc_device_lower): Parse default dimension arg. Adjust
4037 loop partitioning and validation calls.
4039 2016-02-01 Richard Biener <rguenther@suse.de>
4042 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
4044 2016-02-01 Richard Biener <rguenther@suse.de>
4046 PR tree-optimization/69574
4047 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
4048 of asserting return chrec_dont_know.
4050 2016-02-01 Martin Liska <mliska@suse.cz>
4052 * mem-stats-traits.h: Add copyright header.
4053 * mem-stats.h: Likewise.
4055 2016-02-01 Richard Biener <rguenther@suse.de>
4057 PR tree-optimization/69579
4058 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
4059 Do not propagate through abnormal PHI results.
4061 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
4063 * postreload.c (reload_cse_simplify): Remove dead code.
4065 2016-02-01 Jakub Jelinek <jakub@redhat.com>
4067 PR rtl-optimization/69570
4068 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
4069 if there is more than one set, not if there is a single set.
4071 2016-02-01 Richard Henderson <rth@redhat.com>
4074 * combine.c (make_compound_operation): When looking through a
4075 subreg, make sure to re-extend to the width of the outer mode.
4077 2016-01-30 Jakub Jelinek <jakub@redhat.com>
4079 PR tree-optimization/69546
4080 * wide-int.cc (wi::divmod_internal): For unsigned division
4081 where both operands fit into uhwi, if o1 is 1 and o0 has
4082 msb set, if divident_prec is larger than bits per hwi,
4083 clear another quotient word and return 2 instead of 1.
4084 Similarly for remainder with msb in HWI set, if dividend_prec
4085 is larger than bits per hwi.
4087 2016-01-29 Martin Jambor <mjambor@suse.cz>
4089 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
4090 Use short lowercase names.
4091 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
4092 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
4093 acq_rel one. Protect warning agains segfaults if
4094 get_memory_order_name returns NULL.
4095 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
4096 with release semantics. Do not warn if get_memory_order already did.
4097 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
4098 semantics. Fix check for relaxed or acquire semantics. Do not warn
4099 if get_memory_order already did.
4101 2016-01-29 Sebastian Pop <s.pop@samsung.com>
4103 * doc/install.texi: Document that isl-0.16 is supported.
4105 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
4108 * config/i386/constraints.md (Bm): Describe as special memory
4110 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
4111 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
4112 * genpreds.c (struct constraint_data): Add is_special_memory.
4113 (have_special_memory_constraints, special_memory_start): New
4115 (special_memory_end): Ditto.
4116 (add_constraint): Add new arg is_special_memory. Add code to
4117 process its true value. Update have_special_memory_constraints.
4118 (process_define_constraint): Pass the new arg.
4119 (process_define_register_constraint): Ditto.
4120 (choose_enum_order): Process special memory.
4121 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
4122 function insn_extra_special_memory_constraint.
4123 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
4124 * gensupport.c (process_rtx): Process
4125 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
4126 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
4127 * ira-lives.c (single_reg_class): Use
4128 insn_extra_special_memory_constraint.
4129 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
4130 * lra-constraints.c (process_alt_operands): Ditto.
4131 (curr_insn_transform): Use insn_extra_special_memory_constraint.
4132 * recog.c (asm_operand_ok, preprocess_constraints): Process
4134 * reload.c (find_reloads): Ditto.
4135 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
4136 * stmt.c (parse_input_constraint): Use
4137 insn_extra_special_memory_constraint.
4139 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
4142 * lra-splill.c (lra_final_code_change): Revert r229087 by
4143 removing all sub-registers.
4145 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
4148 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
4150 2016-01-29 Jakub Jelinek <jakub@redhat.com>
4153 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
4154 SSE1, copy target into the temporary reg first before recursing
4157 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
4159 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
4162 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
4164 * ginclude/stdarg.h: Test __cplusplus instead of
4165 __GXX_EXPERIMENTAL_CXX0X__.
4167 2016-01-29 Richard Biener <rguenther@suse.de>
4169 PR tree-optimization/69547
4170 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
4171 Do not mark clobbers necessary.
4172 (mark_all_reaching_defs_necessary_1): Likewise.
4174 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4176 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
4177 declaration name with %qs and print it in both error messages.
4178 Also fix indentation.
4180 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4183 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
4184 trailing blank line from error message.
4186 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
4189 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
4192 2016-01-29 Richard Biener <rguenther@suse.de>
4195 * match.pd: Allow all integral types when simplifying a
4196 widening or sign-changing conversion.
4198 2016-01-28 Sebastian Pop <s.pop@samsung.com>
4200 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
4201 back to setting codegen_error to fail codegen.
4203 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
4206 * config/i386/constraints.md (C): Only accept constant zero operand.
4207 (BC): New constraint.
4208 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
4209 instead of C constraint.
4210 * doc/md.texi (Machine Constraints): Update description
4213 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
4216 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
4218 2016-01-28 Jakub Jelinek <jakub@redhat.com>
4221 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
4224 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
4226 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
4227 branches if using guessed profile.
4229 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
4231 * graphite-optimize-isl.c (optimize_isl): Fix dump.
4233 2016-01-28 Richard Henderson <rth@redhat.com>
4236 * config/aarch64/aarch64-modes.def (CC_Cmode): New
4237 * config/aarch64/aarch64-protos.h: Update.
4238 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
4239 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
4240 (aarch64_get_condition_code_1): Handle CC_Cmode.
4241 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
4242 (*add<mode>3_compareC_cconly_imm): New.
4243 (*add<mode>3_compareC_cconly): New.
4244 (*add<mode>3_compareC_imm): New.
4245 (add<mode>3_compareC): New.
4246 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
4247 to be first. Use aarch64_carry_operation.
4248 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
4249 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
4250 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
4251 (subti3): Use subdi3_compare1.
4252 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
4253 (sub<mode>3_compare1): New.
4254 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
4255 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
4256 (*subsi3_carryin_uxtw): Likewise.
4257 (*ngc<mode>, *ngcsi_uxtw): Likewise.
4258 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
4259 * config/aarch64/iterators.md (DWI): New.
4260 * config/aarch64/predicates.md (aarch64_carry_operation): New.
4261 (aarch64_borrow_operation): New.
4263 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4265 * graphite-optimize-isl.c (optimize_isl): Print a different debug
4266 message when isl does not return a valid schedule.
4268 2016-01-28 Sebastian Pop <s.pop@samsung.com>
4270 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4271 Remove comments from class declarations: they are already in the code
4274 2016-01-28 Sebastian Pop <s.pop@samsung.com>
4276 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
4278 (ternary_op_to_tree): Same.
4279 (unary_op_to_tree): Same.
4280 (nary_op_to_tree): Same.
4281 (gcc_expression_from_isl_expr_op): Same.
4282 (gcc_expression_from_isl_expression): Same.
4283 (graphite_create_new_loop): Same.
4284 (graphite_create_new_loop_guard): Same.
4285 (build_iv_mapping): Same.
4286 (graphite_create_new_guard): Same.
4287 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
4288 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
4290 2016-01-28 Sebastian Pop <s.pop@samsung.com>
4292 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
4293 instead of setting codegen_error to fail codegen.
4295 2016-01-28 Jason Merrill <jason@redhat.com>
4297 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
4299 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
4301 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
4302 Remove CONST_INT_P check in CCMP cost calculation.
4304 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
4306 * config/aarch64/aarch64.c (generic_vector_cost):
4307 Set vec_permute_cost.
4308 (cortexa57_vector_cost): Likewise.
4309 (exynosm1_vector_cost): Likewise.
4310 (xgene1_vector_cost): Likewise.
4311 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
4312 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
4313 Add vec_permute_cost entry.
4315 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
4317 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
4319 (add<mode>3_compare0): Likewise.
4320 (addsi3_compare0_uxtw): Likewise.
4321 (add<mode>3nr_compare0): Likewise.
4322 (compare_neg<mode>): Likewise.
4323 (<optab><mode>3): Likewise.
4325 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
4327 * tree-vect-stmts.c (vectorizable_comparison): Add
4328 NULL check for vectype.
4330 2016-01-28 Richard Biener <rguenther@suse.de>
4332 PR tree-optimization/69466
4333 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
4334 Account for PHIs we couldn't duplicate.
4336 2016-01-28 Martin Liska <mliska@suse.cz>
4339 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
4340 instead of ENABLE_VALGRIND_CHECKING.
4342 2016-01-27 Richard Henderson <rth@redhat.com>
4345 * lra-remat.c (subreg_regs): New.
4346 (dump_candidates_and_remat_bb_data): Dump it.
4347 (operand_to_remat): Reject if operand in subreg_regs.
4348 (set_bb_regs): Collect subreg_regs.
4349 (lra_remat): Init and free subreg_regs. Compute
4350 calculate_local_reg_remat_bb_data before create_cands.
4352 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
4355 * config/i386/i386.c (ix86_update_stack_boundary): Don't
4356 change stack_alignment_needed for __tls_get_addr call.
4358 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
4360 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
4362 2016-01-27 Jeff Law <law@redhat.com>
4364 PR tree-optimization/68398
4365 PR tree-optimization/69196
4366 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
4367 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
4368 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4369 Only count PHIs in the last block in the path. The others will
4370 const/copy propagate away. Add heuristic to allow more irreducible
4371 subloops to be created when it is likely profitable to do so.
4373 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4374 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
4375 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
4377 2016-01-27 Jakub Jelinek <jakub@redhat.com>
4380 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
4381 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
4382 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
4383 * tree-streamer-in.c: Include asan.h.
4384 (streamer_get_builtin_tree): For builtins in sanitizer
4385 range call initialize_sanitizer_builtins and retry.
4387 2016-01-27 Ian Lance Taylor <iant@google.com>
4389 * common.opt (fkeep-gc-roots-live): New undocumented option.
4390 * tree-ssa-loop-ivopts.c (add_candidate_1): If
4391 -fkeep-gc-roots-live, skip pointers.
4392 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
4395 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
4398 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
4399 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
4401 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
4404 * configure.ac: NetBSD provides SSP in its C library.
4405 * configure: Updated.
4407 2016-01-27 Richard Biener <rguenther@suse.de>
4409 PR tree-optimization/69166
4410 * tree-vect-loop.c (vect_is_simple_reduction): Always check
4411 reduction code for commutativity / associativity.
4413 2016-01-27 Martin Jambor <mjambor@suse.cz>
4415 PR tree-optimization/69355
4416 * tree-sra.c (analyze_access_subtree): Correct hole detection when
4417 total_scalarization fails.
4419 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
4421 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
4424 2016-01-27 Christian Bruel <christian.bruel@st.com>
4427 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
4428 Move arm_reset_previous_fndecl and set_target_option_current_node in
4429 the conditional part. Call save_restore_target_globals.
4430 * config/arm/arm.c (arm_set_current_function):
4431 Refactor to better support #pragma target and attribute mix.
4432 Call save_restore_target_globals.
4433 * config/arm/arm-protos.h (save_restore_target_globals): New function.
4435 2016-01-27 Martin Liska <mliska@suse.cz>
4437 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
4438 reference for an HSA kernel and its host function.
4440 2016-01-27 Jakub Jelinek <jakub@redhat.com>
4442 PR tree-optimization/69399
4443 * wide-int.h (wi::lrshift): For larger precisions, only
4444 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
4446 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
4448 * config/arc/predicates.md (proper_comparison_operator): Reject
4449 constant-constant comparison.
4451 2016-01-26 Tom de Vries <tom@codesourcery.com>
4453 PR tree-optimization/69110
4454 * tree-data-ref.c (initialize_data_dependence_relation): Handle
4455 DR_NUM_DIMENSIONS == 0.
4457 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4458 Sebastian Pop <s.pop@samsung.com>
4460 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
4461 isl_ast_op_cond and isl_ast_op_select.
4462 (gcc_expression_from_isl_expr_op): Same.
4464 2016-01-26 Jason Merrill <jason@redhat.com>
4467 * tree.c (recompute_constructor_flags): Split out from
4469 (verify_constructor_flags): New.
4470 * tree.h: Declare them.
4472 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
4474 PR rtl-optimization/69217
4475 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
4476 are no TYPE_FIELDS set for the record type.
4478 2016-01-26 Jakub Jelinek <jakub@redhat.com>
4481 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
4482 toc_label_name unconditionally.
4483 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
4484 SYMBOL_REF string. Use toc_label_name instead of constructing
4486 (rs6000_elf_declare_function_name): Use toc_label_name instead of
4487 constructing LCTOC1.
4489 2016-01-26 Martin Sebor <msebor@redhat.com>
4492 * doc/extend.texi (Common Type Attributes): Move text that talks about
4493 attribute packed from attribute aligned to the section discussing
4494 the former attribute for clarity.
4496 2016-01-26 Richard Henderson <rth@redhat.com>
4499 * trans-mem.c (tm_region_init): Mark entry block as visited.
4501 2016-01-26 David Malcolm <dmalcolm@redhat.com>
4504 * diagnostic-show-locus.c (layout::print_source_line): Replace
4505 call to pp_newline with call to layout::print_newline.
4506 (layout::print_annotation_line): Likewise.
4507 (layout::move_to_column): Likewise.
4508 (layout::print_any_fixits): After printing any fixits, print a
4509 trailing newline, if necessary.
4510 (layout::print_newline): New method, resetting any colorization
4512 (diagnostic_show_locus): Move the pp_newline to before the
4513 early bailout. Remove dummy block enclosing the layout instance.
4514 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
4515 of pp_newline_and_flush with pp_flush.
4516 (diagnostic_append_note): Delete use of pp_newline.
4517 (diagnostic_append_note_at_rich_loc): Delete.
4518 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
4519 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
4520 when newline characters are added to the buffer.
4522 2016-01-26 Michael Matz <matz@suse.de>
4524 * configure.ac (ac_cv_std_swap_in_utility): New test.
4525 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
4526 * configure: Regenerate.
4527 * config.in: Regenerate.
4529 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
4531 * config/arc/arc.md (cstoresi4): Force operand into register.
4532 (arcset<code>): Fix predicate.
4533 (arcsetltu): Likewise.
4534 (arcsetgeu): Likewise.
4535 (arcsethi): Likewise.
4536 (arcsetls): Likewise.
4538 2016-01-26 Jakub Jelinek <jakub@redhat.com>
4540 PR tree-optimization/69483
4541 * gimple-fold.c (canonicalize_constructor_val): Return NULL
4542 if base has error_mark_node type.
4544 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
4547 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
4548 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
4550 (vget_lane_f16): Handle big-endian.
4551 (vgetq_lane_f16): Likewise.
4552 (vset_lane_f16): Likewise.
4553 (vsetq_lane_f16): Likewise.
4554 * config/arm/iterators.md (VQXMOV): Add V8HF.
4555 (VDQ): Add V4HF and V8HF.
4556 (V_reg): Handle V4HF and V8HF.
4557 (Is_float_mode): Likewise.
4558 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
4559 neon_vdup_nv8hf): New patterns.
4560 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
4561 Use VD_LANE iterator.
4562 (neon_vld1_dup<mode>): Use VQ2 iterator.
4564 2016-01-26 Nathan Sidwell <nathan@acm.org>
4566 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
4567 (set_oacc_fn_attrib): Add IS_KERNEL arg.
4568 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
4569 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
4570 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
4571 (oacc_validate_dims): Add LEVEL arg, don't return level.
4572 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
4574 (execute_oacc_device_lower): Adjust, add more dump output.
4575 * tree-ssa-loop.c (gate_oacc_kernels): Use
4576 oacc_fn_attrib_kernels_p.
4577 * tree-parloops.c (create_parallel_loop): Adjust
4578 set_oacc_fn_attrib call.
4580 2016-01-26 Jakub Jelinek <jakub@redhat.com>
4583 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
4584 (append_compiler_options): Handle -fcilkplus.
4585 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
4587 2016-01-26 Nick Clifton <nickc@redhat.com>
4590 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
4591 been marked as DECL_ONE_ONLY but we do not the means to make it
4592 so, then do not allow it to bind locally.
4594 2016-01-26 Jakub Jelinek <jakub@redhat.com>
4597 * opts.h (parse_sanitizer_options): New prototype.
4598 * opts.c (sanitizer_opts): New array.
4599 (parse_sanitizer_options): New function.
4600 (common_handle_option): Use parse_sanitizer_options.
4602 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
4605 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
4606 alignment adjustment to ...
4607 (ix86_update_stack_boundary): Here. Don't over-align stack for
4609 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
4610 if __tls_get_addr is called.
4612 2016-01-26 Christian Bruel <christian.bruel@st.com>
4614 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
4616 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
4618 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
4620 2016-01-26 Richard Biener <rguenther@suse.de>
4623 * match.pd: Guard X * CST CMP 0 pattern with single_use.
4625 2016-01-26 Richard Biener <rguenther@suse.de>
4627 PR tree-optimization/69452
4628 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
4629 (move_computations_dom_walker::before_dom_children): Rename
4631 (move_computations_worker): This.
4632 (move_computations): Perform an RPO rather than a DOM walk.
4634 2016-01-26 Jakub Jelinek <jakub@redhat.com>
4637 * combine.c (combine_instructions): For REG_EQUAL note with
4638 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
4639 to the underlying register.
4640 * doc/rtl.texi (REG_EQUAL): Document the behavior of
4641 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
4643 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
4646 * config/aarch64/aarch64-builtins.c
4647 (aarch64_init_simd_builtin_types): Do not set structural
4648 equality to __Poly{8,16,64,128}_t types.
4650 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
4652 PR tree-optimization/69400
4653 * wide-int.cc (wi_pack): Take the precision as argument and
4654 perform canonicalization here rather than in the callers.
4655 Use the main loop to handle all full-width HWIs. Add a
4656 zero HWI if in_len isn't a full result.
4657 (wi::divmod_internal): Update accordingly.
4658 (wi::mul_internal): Likewise. Simplify.
4660 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
4661 Sebastian Pop <s.pop@samsung.com>
4663 * graphite-poly.c (apply_poly_transforms): Simplify.
4664 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
4665 (print_isl_map): Same.
4666 (print_isl_union_map): Same.
4667 (print_isl_schedule): New.
4668 (debug_isl_schedule): New.
4669 * graphite-dependences.c (scop_get_reads): Do not call
4670 isl_union_map_add_map that is undocumented isl functionality.
4671 (scop_get_must_writes): Same.
4672 (scop_get_may_writes): Same.
4673 (scop_get_original_schedule): Remove.
4674 (scop_get_dependences): Do not call isl_union_map_compute_flow that
4675 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
4676 (compute_deps): Remove.
4677 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
4678 (debug_schedule_ast): New.
4679 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
4680 set_separate_option.
4681 (graphite_regenerate_ast_isl): Add dump.
4682 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
4683 from scop->transformed_schedule.
4684 (graphite_regenerate_ast_isl): Add more dump.
4685 * graphite-optimize-isl.c (optimize_isl): Set
4686 scop->transformed_schedule. Check whether schedules are equal.
4687 (apply_poly_transforms): Move here.
4688 * graphite-poly.c (apply_poly_transforms): ... from here.
4689 (free_poly_bb): Static.
4690 (free_scop): Static.
4691 (pbb_number_of_iterations_at_time): Remove.
4692 (print_isl_ast): New.
4693 (debug_isl_ast): New.
4694 (debug_scop_pbb): New.
4695 * graphite-scop-detection.c (print_edge): Move.
4697 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4698 (build_scop_scattering): Remove.
4699 (create_pw_aff_from_tree): Assert instead of bailing out.
4700 (add_condition_to_pbb): Remove unused code, do not fail.
4701 (add_conditions_to_domain): Same.
4702 (add_conditions_to_constraints): Remove.
4703 (build_scop_context): New.
4704 (add_iter_domain_dimension): New.
4705 (build_iteration_domains): Initialize pbb->iterators.
4706 Call add_conditions_to_domain.
4709 (index_outermost_in_loop): New.
4710 (index_pbb_in_loop): New.
4711 (outermost_pbb_in): New.
4712 (add_in_sequence): New.
4713 (add_outer_projection): New.
4714 (outer_projection_mupa): New.
4715 (add_loop_schedule): New.
4716 (build_schedule_pbb): New.
4717 (build_schedule_loop): New.
4718 (embed_in_surrounding_loops): New.
4719 (build_schedule_loop_nest): New.
4720 (build_original_schedule): New.
4721 (build_poly_scop): Call build_original_schedule.
4722 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
4723 (free_poly_dr): Remove.
4724 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
4725 (free_poly_bb): Remove.
4726 (debug_loop_vec): Remove.
4727 (print_isl_ast): Declare.
4728 (debug_isl_ast): Declare.
4729 (scop_do_interchange): Remove.
4730 (scop_do_strip_mine): Remove.
4731 (scop_do_block): Remove.
4732 (flatten_all_loops): Remove.
4733 (optimize_isl): Remove.
4734 (pbb_number_of_iterations_at_time): Remove.
4735 (debug_scop_pbb): Declare.
4736 (print_schedule_ast): Declare.
4737 (debug_schedule_ast): Declare.
4738 (struct scop): Remove schedule. Add original_schedule,
4739 transformed_schedule.
4740 (free_gimple_poly_bb): Remove.
4741 (print_generated_program): Remove.
4742 (debug_generated_program): Remove.
4743 (unify_scattering_dimensions): Remove.
4744 * sese.c (print_edge): ... here.
4745 (print_sese): ... here.
4746 (debug_edge): ... here.
4747 (debug_sese): ... here.
4748 * sese.h (print_edge): Declare.
4749 (print_sese): Declare.
4750 (dump_edge): Declare.
4751 (dump_sese): Declare.
4753 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
4754 Sebastian Pop <s.pop@samsung.com>
4756 * Makefile.in: Set ISLVER in site.exp.
4758 2016-01-25 Jakub Jelinek <jakub@redhat.com>
4760 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
4761 DECL_VALUE_EXPR of new_var even for the non-array case. Look
4762 through DECL_VALUE_EXPR for expansion.
4764 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4766 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
4767 the frame info after reload completed.
4769 2016-01-25 Jeff Law <law@redhat.com>
4771 PR tree-optimization/69196
4772 PR tree-optimization/68398
4773 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
4774 tree-ssa-threadupdate.c.
4775 (determine_bb_domination_status): Prototype
4776 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
4777 (determine_bb_domination_status): No longer static.
4778 (valid_jump_thread_path): Remove code to detect characteristics
4779 of the jump thread path not associated with correctness.
4780 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
4781 Correct test for thread path length. Count PHIs for real operands as
4782 statements that need to be copied. Do not count ASSERT_EXPRs.
4783 Look at all the blocks in the thread path. Compute and selectively
4784 filter thread paths based on threading through the latch, threading
4785 a multiway branch or crossing a multiway branch.
4787 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4789 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
4790 decl with __attribute__ ((unused)) annotation.
4792 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
4795 * tree-vect-stmts.c (vectorizable_condition): Check vectype
4796 of operands is compatible with a statement vectype.
4798 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
4800 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
4801 improve wording for mixed storage order support.
4803 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
4805 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
4806 (vcvt_u64_f64): Likewise.
4807 (vcvta_s64_f64): Likewise.
4808 (vcvta_u64_f64): Likewise.
4809 (vcvtm_s64_f64): Likewise.
4810 (vcvtm_u64_f64): Likewise.
4811 (vcvtn_s64_f64): Likewise.
4812 (vcvtn_u64_f64): Likewise.
4813 (vcvtp_s64_f64): Likewise.
4814 (vcvtp_u64_f64): Likewise.
4816 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
4818 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
4819 (arc_init): Check validity mll64 option.
4820 (arc_save_restore): Use double load/store instruction.
4821 (arc_expand_movmem): Likewise.
4822 (arc_split_move): Don't split if we have double load/store
4823 instructions. Returns a boolean.
4824 (arc_process_double_reg_moves): Change function to return boolean
4825 instead of a sequence of instructions.
4826 (arc_dwarf_register_span): New function.
4827 * config/arc/arc-protos.h (arc_split_move): Change prototype.
4828 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
4829 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
4830 (*movdf_insn): Likewise.
4831 * config/arc/arc.opt (mll64): New option.
4832 * config/arc/predicates.md (even_register_operand): New predicate.
4833 * doc/invoke.texi (ARC Options): Add mll64 documentation.
4835 2016-01-25 Richard Biener <rguenther@suse.de>
4838 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
4839 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
4841 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
4843 2016-01-25 Richard Biener <rguenther@suse.de>
4845 PR tree-optimization/69376
4846 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
4848 (VN_INFO_ANTI_RANGE_P): New inline.
4849 (VN_INFO_RANGE_TYPE): Likewise.
4850 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
4851 SSA_NAME_ANTI_RANGE_P.
4852 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
4853 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4854 Properly query VN_INFO_RANGE_TYPE.
4856 2016-01-25 Nick Clifton <nickc@redhat.com>
4859 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
4861 2016-01-23 Tom de Vries <tom@codesourcery.com>
4863 PR tree-optimization/69426
4864 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
4867 2016-01-23 Jakub Jelinek <jakub@redhat.com>
4869 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
4870 "the the" with "the" in the comments.
4871 * ipa-devirt.c (build_type_inheritance_graph,
4872 update_type_inheritance_graph): Likewise.
4873 * tree.c (build_function_type_list_1): Likewise.
4874 * cfgloopmanip.c (scale_loop_profile): Likewise.
4875 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
4876 * gimple-ssa-split-paths.c
4877 (find_block_to_duplicate_for_splitting_paths): Likewise.
4878 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
4879 * expr.c (convert_move): Likewise.
4880 * var-tracking.c (vt_stack_adjustments): Likewise.
4881 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
4882 * tree-vrp.c (test_for_singularity): Likewise.
4884 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
4885 directly instead of building a temporary tree.
4888 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
4889 remove <algorithm> include.
4891 2016-01-22 Jakub Jelinek <jakub@redhat.com>
4894 * config/i386/i386.c: Include dojump.h.
4895 (expand_small_movmem_or_setmem,
4896 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
4898 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
4899 if dynamic_check != -1.
4901 2016-01-21 Jeff Law <law@redhat.com>
4904 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
4905 record_temporary_equivalences. Rewritten to avoid unnecessary calls
4906 into dominated_by_p.
4907 (cprop_into_successor_phis): Avoid unnecessary tests.
4909 2016-01-22 Richard Henderson <rth@redhat.com>
4912 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
4913 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
4915 2016-01-22 Michael Matz <matz@suse.de>
4917 * system.h (string, algorithm): Include only conditionally.
4918 (new): Include always under C++.
4919 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
4920 * final.c (toplevel): Ditto.
4921 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
4922 * genconditions.c (write_header): Make gencondmd.c define
4924 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
4926 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
4927 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
4929 2016-01-22 Christian Bruel <christian.bruel@st.com>
4932 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
4934 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4937 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
4938 define_insn_and_split. Ensure operands[1] and operands[0] do not
4939 get assigned the same register.
4941 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
4943 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
4945 2016-01-22 Christian Bruel <christian.bruel@st.com>
4947 * config/arm/arm-c.c (arm_pragma_target_parse):
4948 Remove warn_builtin_macro_redefined overwrite.
4950 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
4952 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
4953 flag_non_call_exceptions compatibility.
4955 2016-01-22 Jakub Jelinek <jakub@redhat.com>
4958 * dwarf2out.c (add_child_die_after): New function.
4959 (dwarf_qual_info_t): New type.
4960 (dwarf_qual_info): New variable.
4961 (qualified_die_p): New function.
4962 (modified_type_die): For -fdebug-types-section, ensure
4963 canonical order of qualifiers. Put qualified DIEs adjacent
4964 to the corresponding non-qualified type DIE and search there
4965 for existing qualified DIEs.
4967 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
4969 * doc/extend.texi (scalar_storage_order type attribute): Document
4970 restriction on type punning and aliasing, and remove future tense.
4972 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
4975 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
4978 2016-01-21 Jeff Law <law@redhat.com>
4981 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
4982 useless call to record_temporary_equivalences.
4983 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
4984 allocate 10 slots in the bb_path vector and let it grow as needed.
4985 (fsm_find_control_statement_thread_paths): Similarly for the next_path
4988 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
4990 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
4992 * configure: Regenerate.
4994 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
4996 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
4997 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
4999 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
5002 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
5003 drop EXPAND_INITIALIZER.
5004 * rtl.h (contains_symbolic_reference_p): Declare.
5005 * rtlanal.c (contains_symbolic_reference_p): New function.
5006 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
5007 a subtraction into a NOT if symbolic constants are involved.
5009 2016-01-21 Anton Blanchard <anton@samba.org>
5010 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5013 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
5015 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
5018 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
5020 * config/microblaze/microblaze.c
5021 (get_branch_target): New.
5022 (insert_wic_for_ilb_runout): New.
5024 (microblaze_machine_dependent_reorg): New.
5025 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
5026 * config/microblaze/microblaze.md
5027 (UNSPEC_IPREFETCH): Define.
5028 (iprefetch): New pattern
5029 * config/microblaze/microblaze.opt
5030 (mxl-prefetch): New flag.
5032 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
5034 * config/microblaze/microblaze.h
5035 (FIXED_REGISTERS): Update in macro.
5036 (CALL_USED_REGISTERS): Update in macro.
5038 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
5040 PR rtl-optimization/68920
5041 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
5044 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
5046 PR rtl-optimization/68990
5047 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
5048 pseudo instead of inheritance ones.
5050 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5051 Nick Clifton <nickc@redhat.com>
5055 * config/mips/mips.c (mips_compute_frame_info): Initialise
5056 args_size and hard_frame_pointer_offset fields of the frame
5057 structure before calling mips_global_pointer.
5059 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
5061 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
5063 * configure: Regenerate.
5065 2016-01-21 Richard Biener <rguenther@suse.de>
5067 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
5069 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
5071 * config/s390/s390.c (s390_asm_declare_function_size): Add code
5072 to actually emit the .size directive.
5074 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
5075 Jakub Jelinek <jakub@redhat.com>
5079 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
5080 args array size by one to avoid buffer overflow.
5082 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
5084 * config/s390/s390.md (pool_section_start): Use switch_to_section
5085 to select proper read-only data section instead of hardcoding
5087 (pool_section_end): Use switch_to_section to match the above.
5089 2016-01-21 Richard Biener <rguenther@suse.de>
5091 PR tree-optimization/69378
5092 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
5093 (set_ssa_val_to): Use it for dominance checks taking into
5094 account not executable edges.
5096 2016-01-21 Jakub Jelinek <jakub@redhat.com>
5099 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
5100 for bitsize instead of GET_MODE_PRECISION (mode).
5102 2016-01-20 Martin Sebor <msebor@redhat.com>
5105 * extend.texi (__sync Builtins): Clarify the semantics of
5106 __sync_fetch_and_OP built-ins on pointers.
5107 (__atomic Builtins): Same.
5109 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5110 Sebastian Pop <s.pop@samsung.com>
5112 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
5113 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
5114 (is_valid_rename): Same.
5115 (translate_isl_ast_to_gimple::get_rename): Same.
5116 (translate_isl_ast_to_gimple::rename_all_uses): Same.
5117 (translate_isl_ast_to_gimple::rename_uses): Same.
5118 (get_new_name): Check for close_phi nodes.
5119 (copy_loop_phi_args): Use phi_node_kind.
5120 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
5121 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
5123 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5124 Sebastian Pop <s.pop@samsung.com>
5126 Revert commit r229783.
5127 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5128 Remove use of parameter_rename_map.
5130 (copy_internal_parameters): Remove.
5131 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
5132 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
5133 (free_sese_info): Do not free parameter_rename_map.
5134 (set_rename): Do not use parameter_rename_map.
5135 (rename_uses): Update call to set_rename.
5136 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
5137 * sese.h (parameter_rename_map_t): Remove.
5138 (struct sese_info_t): Remove field parameter_rename_map.
5140 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5141 Sebastian Pop <s.pop@samsung.com>
5143 * graphite-isl-ast-to-gimple.c: Fix comment.
5144 * graphite-scop-detection.c (defined_in_loop_p): New.
5145 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
5146 names defined in loop.
5148 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5149 Sebastian Pop <s.pop@samsung.com>
5151 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
5152 Discard unstructured if-then-else regions.
5154 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5155 Sebastian Pop <s.pop@samsung.com>
5157 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
5158 (cleanup_loop_iter_dom): Remove.
5159 (build_loop_iteration_domains): Remove.
5160 (build_scop_context): Remove.
5161 (build_scop_iteration_domain): Remove.
5162 (add_loop_constraints): New.
5163 (build_iteration_domains): New.
5164 (build_poly_scop): Call build_iteration_domains.
5166 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5167 Sebastian Pop <s.pop@samsung.com>
5169 * graphite-scop-detection.c
5170 (scop_detection::harmful_loop_in_region): Free dom and loops.
5171 (scop_detection::loop_body_is_valid_scop): Free bbs.
5173 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5174 Sebastian Pop <s.pop@samsung.com>
5176 * graphite-scop-detection.c (record_loop_in_sese): New.
5177 (gather_bbs::before_dom_children): Call record_loop_in_sese.
5178 (build_scops): Remove call to build_sese_loop_nests.
5179 * sese.c (sese_record_loop): Remove.
5180 (build_sese_loop_nests): Remove.
5181 (new_sese_info): Remove region->loops.
5182 (free_sese_info): Same.
5183 * sese.h (sese_contains_loop): Same.
5184 (build_sese_loop_nests): Remove.
5185 (sese_contains_loop): Remove.
5187 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5188 Sebastian Pop <s.pop@samsung.com>
5190 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
5191 loop_is_valid_in_scop.
5192 (scop_detection::harmful_stmt_in_region): Renamed
5193 harmful_loop_in_region.
5194 Call loop_is_valid_in_scop.
5196 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5197 Sebastian Pop <s.pop@samsung.com>
5199 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
5202 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5203 Sebastian Pop <s.pop@samsung.com>
5205 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
5206 * graphite.h (struct poly_bb): Remove field is_reduction.
5207 (PBB_IS_REDUCTION): Remove.
5209 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5210 Sebastian Pop <s.pop@samsung.com>
5212 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
5213 (add_pdr_constraints): Same.
5214 (scop_get_reads): Same.
5215 (scop_get_must_writes): Same.
5216 (scop_get_may_writes): Same.
5217 (scop_get_original_schedule): Same.
5218 (extend_schedule): Same.
5219 (apply_schedule_on_deps): Same.
5220 (carries_deps): Same.
5221 (compute_deps): Same.
5222 (scop_get_dependences): Same.
5223 * graphite-isl-ast-to-gimple.c
5224 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
5225 * graphite-optimize-isl.c (get_schedule_for_band): Same.
5226 (get_schedule_for_band_list): Same.
5227 (get_schedule_map): Same.
5228 (apply_schedule_map_to_scop): Same.
5229 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
5230 (build_loop_iteration_domains): Same.
5231 (add_condition_to_pbb): Same.
5232 (add_param_constraints): Same.
5233 (pdr_add_memory_accesses): Same.
5234 (pdr_add_data_dimensions): Same.
5236 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
5238 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
5241 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
5243 * common.opt (feliminate-dwarf2-dups): Replace references to
5244 "DWARF 2" with just "DWARF".
5245 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
5246 * doc/extend.texi: Likewise.
5247 * doc/cpp.texi: Likewise.
5248 * doc/invoke.texi: Likewise.
5249 (Option Summary): Add -gdwarf to list of Debugging Options.
5250 (Debugging Options): Document -gdwarf.
5251 * doc/contrib.texi: Spell "DWARF" like that.
5253 2016-01-21 Jakub Jelinek <jakub@redhat.com>
5255 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
5256 warning. Fix up formatting.
5259 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
5260 attempt to mark memory input operand addressable and
5261 call prepare_gimple_addressable in that case. Don't adjust
5262 input_location for diagnostics, use error_at instead.
5264 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
5266 * config/rs6000/ppc-auxv.h: New file.
5267 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
5269 (cpu_supports): Likewise.
5270 * config/rs6000/rs6000.c: include "ppc-auxv.h".
5271 (cpu_is_info): New variable.
5272 (cpu_supports_info): Likewise.
5273 (tcb_verification_symbol): Likewise.
5274 (cpu_builtin_p): Likewise.
5275 (cpu_expand_builtin): New function.
5276 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
5277 (rs6000_init_builtins): Likewise.
5278 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
5279 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
5280 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
5281 * configure: Regenerate.
5282 * config.in: Likewise.
5283 * doc/extend.texi (PowerPC Built-in Functions): Document
5284 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
5286 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
5289 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
5291 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
5294 2016-01-20 Richard Henderson <rth@redhat.com>
5300 * tree.c (tm_define_builtin): New.
5301 (find_tm_vector_type): New.
5302 (build_tm_vector_builtins): New.
5303 (build_common_builtin_nodes): Call it.
5305 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
5307 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
5308 (arm_fp_ok): Likewise.
5310 (arm_crypto): Likewise.
5312 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
5313 Richard Biener <rguenther@suse.de>
5315 PR tree-optimization/69328
5316 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
5317 vectors have same number of elements.
5318 (vectorizable_condition): Fix masked version recognition.
5320 2016-01-20 Richard Biener <rguenther@suse.de>
5322 PR tree-optimization/69345
5323 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
5324 (VN_INFO_PTR_INFO): Likewise.
5325 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
5326 info when it is equal between non-dominating SSA names.
5327 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5328 Make sure to look at original SSA infos.
5330 2016-01-20 Jeff Law <law@redhat.com>
5333 * config/m68k/predicates.md (pow2_m1_operand): New predicate
5335 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
5336 (pc_or_label_operand): New predicate.
5337 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
5338 tests for small integers that are 2^n - 1.
5340 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
5342 * doc/invoke.texi (Options Summary): Add '.' after @xref.
5344 2016-01-19 Jeff Law <law@redhat.com>
5347 * tree-ssa-threadbackwards.c
5348 (fsm_find_control_statement_thread_paths): Do not try to lookup
5349 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
5351 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5353 * doc/lto.texi: Remove text that says only Gold has linker plugin
5356 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
5358 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
5359 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
5360 the DIE accordingly.
5361 (modified_type_die): Add REVERSE parameter and pass it recursively,
5362 as well as to base_type_die. Adjust presence check accordingly.
5363 (base_type_for_mode): Adjust call to modified_type_die.
5364 (add_type_attribute): Add REVERSE parameter and pass it to
5366 (generic_parameter_die): Adjust call to add_type_attribute.
5367 (add_scalar_info): Likewise.
5368 (add_subscript_info): Likewise.
5369 (gen_array_type_die): Likewise.
5370 (gen_descr_array_type_die): Likewise.
5371 (gen_entry_point_die): Likewise.
5372 (gen_enumeration_type_die): Likewise.
5373 (gen_formal_parameter_die): Likewise.
5374 (gen_subprogram_die): Likewise.
5375 (gen_variable_die ): Likewise.
5376 (gen_const_die): Likewise.
5377 (gen_field_die): Likewise.
5378 (gen_pointer_type_die): Likewise.
5379 (gen_reference_type_die): Likewise.
5380 (gen_ptr_to_mbr_type_die): Likewise.
5381 (gen_inheritance_die): Likewise.
5382 (gen_subroutine_type_die): Likewise.
5383 (gen_typedef_die): Likewise.
5384 (force_type_die): Adjust call to modified_type_die.
5386 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
5388 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
5389 flow throughout the file. Fix broken link to Objective-C 2.0
5391 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
5394 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
5396 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
5398 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5401 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
5402 (maybe_record_node): Record cxa_pure_virtual as the only possible
5403 target if there are not ohter candidates.
5404 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
5406 2016-01-19 Richard Biener <rguenther@suse.de>
5408 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
5409 (get_memory_order): Likewise.
5411 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
5413 * tree-vect-stmts.c (vectorizable_store): Check
5416 2016-01-19 David Malcolm <dmalcolm@redhat.com>
5419 * gcc.c (driver::decode_argv): Add call to
5420 init_opts_obstack before init_options_struct.
5421 * opts.c (init_opts_obstack): Remove idempotency.
5422 (init_options_struct): Replace call to init_opts_obstack
5423 with a gcc_assert to verify that it has already been called.
5424 * toplev.c (toplev::main): Add call to init_opts_obstack before
5425 calls to init_options_struct.
5426 (toplev::finalize): Move cleanup of opts_obstack next to
5427 cleanup of save_decoded_options, clearing the latter, and
5428 save_decoded_options_count.
5430 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5433 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
5434 attribute to unconditional. Remove %? from output template.
5436 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
5437 Jiong Wang <jiong.wang@arm.com>
5439 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
5440 generated from different expand order.
5442 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
5444 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
5445 Add support for CCMP costing.
5447 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
5449 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
5450 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
5451 (fccmpe<mode>): Likewise.
5452 (fcmp): Rename to fcmp and globalize pattern.
5454 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
5455 (aarch64_gen_ccmp_next): Add FP support.
5457 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
5459 * target.def (gen_ccmp_first): Update documentation.
5460 (gen_ccmp_next): Likewise.
5461 * doc/tm.texi (gen_ccmp_first): Update documentation.
5462 (gen_ccmp_next): Likewise.
5463 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
5464 expand_ccmp_expr_1. Improve comments.
5465 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
5466 (ccmp_ior<mode>): Remove pattern.
5467 (cmp<mode>): Remove expand.
5468 (cmp): Globalize pattern.
5469 (cstorecc4): Use cc_register.
5470 (mov<mode>cc): Remove ccmp_cc_register check.
5471 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
5472 Simplify after removal of CC_DNE/* modes.
5473 (aarch64_ccmp_mode_to_code): Remove.
5474 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
5475 In 'k' case use integer as condition.
5476 (aarch64_nzcv_codes): Remove inverted cases.
5477 (aarch64_code_to_ccmode): Remove.
5478 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
5479 comparison with CC register to be used in folowing CCMP/branch/CSEL.
5480 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
5481 pattern. Return the comparison with CC register. Invert conditions
5483 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
5484 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
5486 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5488 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
5489 instrumented_version.
5491 2016-01-19 Richard Biener <rguenther@suse.de>
5493 PR tree-optimization/69336
5494 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
5495 handled components with get_ref_base_and_extent.
5496 (equal_mem_array_ref_p): Adjust.
5498 2016-01-19 Jakub Jelinek <jakub@redhat.com>
5501 * shrink-wrap.c: Include valtrack.h.
5502 (move_insn_for_shrink_wrap): Add DEBUG argument. If
5503 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
5504 in between insn and where it will be moved to. Call
5505 dead_debug_insert_temp.
5506 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
5507 first and dead_debug_local_finish at the end.
5508 For uses and defs bitmap, handle all regs in between REGNO and
5509 END_REGNO, not just the first one.
5511 2016-01-19 Richard Biener <rguenther@suse.de>
5513 PR tree-optimization/69352
5514 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
5515 (equal_mem_array_ref_p): Constrain size and max size properly.
5516 Compare the reverse flag.
5518 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
5520 * ira.c (ira): Update regstat data if we deleted insns.
5522 2016-01-19 Jakub Jelinek <jakub@redhat.com>
5524 PR rtl-optimization/68955
5525 PR rtl-optimization/64557
5526 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
5527 here. Fix up formatting.
5528 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
5530 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5533 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
5534 assume that the node has body.
5535 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
5538 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5540 * lto-streamer-out.c (lto_output): Do not stream instrumentation
5543 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5545 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
5546 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
5548 2016-01-19 Martin Jambor <mjambor@suse.cz>
5549 Martin Liska <mliska@suse.cz>
5550 Michael Matz <matz@suse.de>
5552 * Makefile.in (OBJS): Add new source files.
5553 (GTFILES): Add hsa.c.
5554 * common.opt (disable_hsa): New variable.
5555 (-Whsa): New warning.
5556 * config.in (ENABLE_HSA): New.
5557 * configure.ac: Treat hsa differently from other accelerators.
5558 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
5560 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
5561 * doc/install.texi (Configuration): Document --with-hsa-runtime,
5562 --with-hsa-runtime-include, --with-hsa-runtime-lib and
5564 * doc/invoke.texi (-Whsa): Document.
5565 (hsa-gen-debug-stores): Likewise.
5566 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
5567 to invoke offload compiler for hsa acclerator.
5568 * opts.c (common_handle_option): Determine whether HSA offloading
5569 should be performed.
5570 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
5571 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
5572 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
5573 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
5574 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
5575 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
5576 GF_OMP_FOR_KIND_GRID_LOOP.
5577 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
5578 (pp_gimple_stmt_1): Likewise.
5579 * gimple-walk.c (walk_gimple_stmt): Likewise.
5580 * gimple.c (gimple_build_omp_grid_body): New function.
5581 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
5582 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
5583 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
5584 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
5585 GF_OMP_TEAMS_GRID_PHONY.
5586 (gimple_statement_omp_single_layout): Updated comments.
5587 (gimple_build_omp_grid_body): New function.
5588 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
5589 (gimple_omp_for_grid_phony): New function.
5590 (gimple_omp_for_set_grid_phony): Likewise.
5591 (gimple_omp_parallel_grid_phony): Likewise.
5592 (gimple_omp_parallel_set_grid_phony): Likewise.
5593 (gimple_omp_teams_grid_phony): Likewise.
5594 (gimple_omp_teams_set_grid_phony): Likewise.
5595 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
5596 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
5597 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
5598 (BUILT_IN_GOMP_TARGET): Updated type.
5599 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
5600 (adjust_for_condition): New function.
5601 (get_omp_for_step_from_incr): Likewise.
5602 (extract_omp_for_data): Moved parts to adjust_for_condition and
5603 get_omp_for_step_from_incr.
5604 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
5605 (fixup_child_record_type): Bail out if receiver_decl is NULL.
5606 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
5607 (scan_omp_parallel): Do not create child functions for phony
5609 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
5610 (scan_omp_1_op): Checking assert we are not remapping to
5611 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
5612 (parallel_needs_hsa_kernel_p): New function.
5613 (expand_parallel_call): Register apprpriate parallel child
5614 functions as HSA kernels.
5615 (grid_launch_attributes_trees): New type.
5616 (grid_attr_trees): New variable.
5617 (grid_create_kernel_launch_attr_types): New function.
5618 (grid_insert_store_range_dim): Likewise.
5619 (grid_get_kernel_launch_attributes): Likewise.
5620 (get_target_argument_identifier_1): Likewise.
5621 (get_target_argument_identifier): Likewise.
5622 (get_target_argument_value): Likewise.
5623 (push_target_argument_according_to_value): Likewise.
5624 (get_target_arguments): Likewise.
5625 (expand_omp_target): Call get_target_arguments instead of looking
5626 up for teams and thread limit.
5627 (grid_expand_omp_for_loop): New function.
5628 (grid_arg_decl_map): New type.
5629 (grid_remap_kernel_arg_accesses): New function.
5630 (grid_expand_target_kernel_body): New function.
5631 (expand_omp): Call it.
5632 (lower_omp_for): Do not emit phony constructs.
5633 (lower_omp_taskreg): Do not emit phony constructs but create for them
5634 a temporary variable receiver_decl.
5635 (lower_omp_taskreg): Do not emit phony constructs.
5636 (lower_omp_teams): Likewise.
5637 (lower_omp_grid_body): New function.
5638 (lower_omp_1): Call it.
5639 (grid_reg_assignment_to_local_var_p): New function.
5640 (grid_seq_only_contains_local_assignments): Likewise.
5641 (grid_find_single_omp_among_assignments_1): Likewise.
5642 (grid_find_single_omp_among_assignments): Likewise.
5643 (grid_find_ungridifiable_statement): Likewise.
5644 (grid_target_follows_gridifiable_pattern): Likewise.
5645 (grid_remap_prebody_decls): Likewise.
5646 (grid_copy_leading_local_assignments): Likewise.
5647 (grid_process_kernel_body_copy): Likewise.
5648 (grid_attempt_target_gridification): Likewise.
5649 (grid_gridify_all_targets_stmt): Likewise.
5650 (grid_gridify_all_targets): Likewise.
5651 (execute_lower_omp): Call grid_gridify_all_targets.
5652 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
5653 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
5654 (tree_omp_clause): Added union field dimension.
5655 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
5656 * tree.c (omp_clause_num_ops): Added number of arguments of
5657 OMP_CLAUSE__GRIDDIM_.
5658 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
5659 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
5660 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
5661 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
5662 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
5663 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
5664 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
5665 * tree-pass.h (make_pass_gen_hsail): Declare.
5666 (make_pass_ipa_hsa): Likewise.
5667 * ipa-hsa.c: New file.
5668 * lto-section-in.c (lto_section_name): Add hsa section name.
5669 * lto-streamer.h (lto_section_type): Add hsa section.
5670 * timevar.def (TV_IPA_HSA): New.
5671 * hsa-brig-format.h: New file.
5672 * hsa-brig.c: New file.
5673 * hsa-dump.c: Likewise.
5674 * hsa-gen.c: Likewise.
5677 * toplev.c (compile_file): Call hsa_output_brig.
5678 * hsa-regalloc.c: New file.
5680 2016-01-18 Jeff Law <law@redhat.com>
5682 PR tree-optimization/69320
5683 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
5684 ranged object, do nothing if the RHS constant is not [0..1].
5685 (optimize_stmt): Comparing a boolean ranged object against a
5686 constant outside [0..1] results in a compile-time constant.
5688 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
5691 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
5693 * doc/invoke.texi (Invoking GCC): Add new section to menu.
5694 (Option Summary): Update to reflect new section and moved options.
5695 (C++ Dialect Options): Move -fstats to new section.
5696 (Debugging Options): Move all dump, statistics, and other GCC
5697 developer options to new section. Rewrite section introduction
5698 and re-order remaining options to put the more basic ones first.
5699 (Optimization Options): Move -fira-verbose and -flto-report* to
5701 (Developer Options): New section incorporating moved options.
5702 * doc/cppopts.texi (-dM): Update cross-reference.
5704 2016-01-18 Richard Henderson <rth@redhat.com>
5707 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
5708 operands to pseudo only if CSE is expected. Split long immediate
5709 operands only after reload, and for the stack pointer.
5710 (*add<GPI>3_pluslong): Remove.
5711 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
5712 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
5713 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
5714 (*add<GPI>3 peepholes): New.
5715 (*add<GPI>3 splitters): New.
5716 * config/aarch64/constraints.md (Upl): New.
5717 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
5719 2016-01-18 Richard Biener <rguenther@suse.de>
5721 PR tree-optimization/69297
5722 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
5724 (vect_bb_vectorization_profitable_p): Clear visited flag again.
5726 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
5729 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
5730 of mixind vector and scalar types.
5731 (fold_relational_const): Add handling of vector
5732 comparison with boolean result.
5733 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
5734 comparison of vector operands with boolean result for EQ/NE only.
5735 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
5736 (verify_gimple_cond): Likewise.
5737 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
5740 2016-01-18 Joseph Myers <joseph@codesourcery.com>
5742 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
5745 2016-01-18 Richard Biener <rguenther@suse.de>
5748 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
5750 2016-01-18 Tom de Vries <tom@codesourcery.com>
5752 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
5754 2016-01-18 Tom de Vries <tom@codesourcery.com>
5756 * omp-low.c (set_oacc_fn_attrib): Make extern.
5757 * omp-low.h (set_oacc_fn_attrib): Declare.
5758 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
5759 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
5760 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
5761 Add and handle function parameter oacc_kernels_p.
5762 (find_reduc_addr, get_omp_data_i_param): New function.
5763 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
5764 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
5765 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
5766 Calculate dominance info. Skip loops that are not in a kernels region
5767 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
5768 (pass_parallelize_loops::execute): Call parallelize_loops with
5769 oacc_kernels_p argument.
5770 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
5771 New member function.
5772 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
5773 * passes.def: Add argument to pass_parallelize_loops instantation.
5775 2016-01-18 Tom de Vries <tom@codesourcery.com>
5777 * tree-parloops.c (pass_parallelize_loops::execute): Allow
5778 pass_parallelize_loops to be run outside the loop pipeline.
5780 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
5782 * tree-scalar-evolution.c (follow_copies_to_constant): New.
5783 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
5785 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
5788 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
5789 using get_ref_base_and_extent.
5790 (equal_mem_array_ref_p): New.
5791 (hashable_expr_equal_p): Add call to previous.
5793 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
5796 * tree-sra.c (disqualified_constants, constant_decl_p): New.
5797 (sra_initialize): Allocate disqualified_constants.
5798 (sra_deinitialize): Free disqualified_constants.
5799 (disqualify_candidate): Update disqualified_constants when appropriate.
5800 (create_access): Scan for constant-pool entries as we go along.
5801 (scalarizable_type_p): Add check against type_contains_placeholder_p.
5802 (maybe_add_sra_candidate): Allow constant-pool entries.
5803 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
5804 (initialize_constant_pool_replacements): New.
5805 (sra_modify_assign): Avoid mangling assignments created by previous,
5806 and don't generate writes into constant pool.
5807 (sra_modify_function_body): Call initialize_constant_pool_replacements.
5809 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5811 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
5813 (scalar_chain::convert_op): Likewise.
5814 * config/i386/i386.md (*andndi3_doubleword): New.
5816 2016-01-18 Richard Biener <rguenther@suse.de>
5818 PR tree-optimization/69170
5819 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
5820 building a vector from scalar results of a pattern stmt.
5822 2016-01-18 Jakub Jelinek <jakub@redhat.com>
5824 * haifa-sched.c (autopref_multipass_init): Work around
5825 -Wmaybe-uninitialized warning.
5827 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
5829 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
5830 against the constant 0.
5832 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5834 PR tree-optimization/68799
5835 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
5836 look up phi candidates in the statement-candidate map.
5837 (phi_add_costs): Likewise.
5838 (record_phi_increments): Likewise.
5839 (phi_incr_cost): Likewise.
5840 (ncd_with_phi): Likewise.
5841 (all_phi_incrs_profitable): Likewise.
5843 2016-01-17 Jakub Jelinek <jakub@redhat.com>
5845 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
5846 -Wmaybe-uninitialized warning.
5848 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
5850 * doc/invoke.texi (Invoking GCC): Add new section to menu.
5851 (Option Summary): Update to reflect new section and moved options.
5852 (C++ Dialect Options): Move -fvtable-verify and related options.
5853 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
5854 and profiling-related options.
5855 (Optimization Options): Move profile generation options and
5856 -fstack-protector and related options.
5857 (Instrumentation Options): New section incorporating moved options.
5858 (Code Generation Options): Move -finstrument-functions and
5859 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
5861 2016-01-16 Tom de Vries <tom@codesourcery.com>
5863 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
5865 2016-01-16 Tom de Vries <tom@codesourcery.com>
5867 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
5869 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
5871 * hash-table.h (hash_table::empty): Turn into an inline wrapper
5872 that checks whether the table is already empty. Rename the
5873 original implementation to...
5874 (hash_table::empty_slot): ...this new private function.
5876 2016-01-15 David Malcolm <dmalcolm@redhat.com>
5879 * diagnostic-show-locus.c (layout::print_source_line): Move x
5880 offset of line until after call to
5881 get_line_width_without_trailing_whitespace.
5883 2016-01-15 Jeff Law <law@redhat.com>
5885 PR tree-optimization/69270
5886 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
5887 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
5888 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
5889 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
5890 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
5891 ssa_name_has_boolean_range and constant_boolean_node.
5893 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
5895 PR rtl-optimization/69030
5896 * lra-spills.c (remove_pseudos): Check nrefs and make the function
5898 (spill_pseudos): Delete debug insn for dead pseudo.
5899 (lra_spill): Initiate spill_hard_reg and slots memory separately.
5901 2016-01-15 Jiong Wang <jiong.wang@arm.com>
5903 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
5905 (TYPES_UNOPUS): Likewise.
5906 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
5907 builtin type, from UNOP to UNOPUS.
5908 (lbtruncuv4sf): Likewise.
5909 (lbtruncuv2df): Likewise.
5910 (lrounduv2sf): Likewise.
5911 (lrounduv4sf): Likewise.
5912 (lrounduv2df): Likewise.
5913 (lroundusf): Likewise.
5914 (lroundusf): Likewise.
5915 (lceiluv2sf): Likewise.
5916 (lceiluv4sf): Likewise.
5917 (lceiluv2df): Likewise.
5918 (lceilusf): Likewise.
5919 (lceiludf): Likewise.
5920 (lflooruv2sf): Likewise.
5921 (lflooruv4sf): Likewise.
5922 (lflooruv2df): Likewise.
5923 (lfloorusf): Likewise.
5924 (lfloorudf): Likewise.
5925 (lfrintnuv2sf): Likewise.
5926 (lfrintnuv4sf): Likewise.
5927 (lfrintnuv2df): Likewise.
5928 (lfrintnusf): Likewise.
5929 (lfrintnudf): Likewise.
5930 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
5932 (vcvtq_u32_f32): Likewise.
5933 (vcvtq_u64_f64): Likewise.
5934 (vcvta_u32_f32): Likewise.
5935 (vcvtaq_u32_f32): Likewise.
5936 (vcvtaq_u64_f64): Likewise.
5937 (vcvtm_u32_f32): Likewise.
5938 (vcvtmq_u32_f32): Likewise.
5939 (vcvtmq_u64_f64): Likewise.
5940 (vcvtn_u32_f32): Likwise.
5941 (vcvtnq_u32_f32): Likewise.
5942 (vcvtnq_u64_f64): Likewise.
5943 (vcvtp_u32_f32): Likewise.
5944 (vcvtpq_u32_f32): Likewise.
5945 (vcvtpq_u64_f64): Likewise.
5946 (vcvtmd_u64_f64): Likewise.
5947 (vcvtms_u32_f32): Likewise.
5948 (vcvtad_u64_f64): Likewise.
5949 (vcvtas_u32_f32): Likewise.
5950 (vcvtnd_u64_f64): Likewise.
5951 (vcvtns_u32_f32): Likewise.
5952 (vcvtpd_u64_f64): Likewise.
5953 (vcvtps_u32_f32): Likewise.
5955 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5957 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
5958 CSEL of zero_extended registers.
5960 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5962 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
5963 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
5965 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5967 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
5968 false when argument string is not found in the attributes table
5971 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
5974 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
5975 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
5976 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
5979 2016-01-15 Richard Biener <rguenther@suse.de>
5981 PR tree-optimization/66856
5982 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
5983 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
5984 (vect_create_new_slp_node): Increment stmt reference count.
5985 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
5986 an SLP tree before swapping operands.
5987 (vect_build_slp_tree): Likewise.
5988 (destroy_bb_vec_info): Free stmt info after SLP instances.
5989 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
5990 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
5991 (STMT_VINFO_NUM_SLP_USES): New macro.
5993 2016-01-15 Richard Biener <rguenther@suse.de>
5996 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
5997 (add_linkage_name): ... here.
5998 (gen_typedef_die): Use add_linkage_name_raw instead of
5999 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
6002 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6004 * gimplify.c (oacc_default_clause): Decode reference and pointer
6005 types for both kernels and parallel regions.
6007 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
6010 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
6012 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
6014 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
6015 (convert_scalars_to_vector): Likewise.
6017 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
6019 * doc/extend.texi (Type Traits): Fix grammar.
6021 2016-01-15 Martin Jambor <mjambor@suse.cz>
6023 * tree-inline.c (remap_decl): Use existing dclarations if
6024 remapping a type and prevent_decl_creation_for_types.
6025 (replace_locals_stmt): Do an initial remapping of non-VLA typed
6026 decls first. Do real remapping with
6027 prevent_decl_creation_for_types set.
6028 * tree-inline.h (copy_body_data): New field
6029 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
6032 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
6034 * config/s390/s390.opt (mmvcle): More verbose help text.
6036 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
6038 * config/s390/s390.opt: Add period to -mzvector option text.
6040 2016-01-15 Richard Biener <rguenther@suse.de>
6042 PR tree-optimization/68961
6043 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
6044 of invariants in stores again.
6046 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
6048 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
6050 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
6052 * config/i386/i386.c (ix86_expand_branch): Don't split
6053 DI mode xor instruction to SI mode.
6055 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
6058 * ipa-icf.c (sem_function::merge): Virtual functions may become
6059 reachable even if they address is not taken and there are no
6062 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
6064 * lto-streamer-out.c (subtract_estimated_size): New function.
6065 (get_symbol_initial_value): Use it.
6067 2016-01-15 Christian Bruel <christian.bruel@st.com>
6070 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
6071 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
6072 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
6073 use add_builtin_function_ext_scope instead of add_builtin_function.
6074 (neon_set_p, neon_crypto_set_p): Remove.
6075 (arm_init_builtins): Always call arm_init_neon_builtins and
6076 arm_init_crypto_builtins.
6077 (arm_expand_builtin): Check that builtins are allowed for the arch.
6078 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
6079 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
6080 arm_init_neon_builtins call.
6082 2016-01-15 Richard Biener <rguenther@suse.de>
6084 PR tree-optimization/69117
6085 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
6086 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
6087 of the leader conservatively.
6088 (free_scc_vn): Restore original SSA name infos.
6090 2016-01-14 Jeff Law <law@redhat.com>
6092 PR tree-optimization/69270
6093 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
6094 single bit of precision, verify it's also unsigned.
6095 (record_edge_info): Use constant_boolean_node rather than fold_convert
6096 to convert boolean_true/boolean_false to the right type.
6098 2016-01-14 Richard Henderson <rth@redhat.com>
6101 * loop-doloop.c (record_reg_sets): New.
6102 (doloop_optimize): Reject the transform if the sequence
6103 clobbers registers live at the end of the loop block.
6104 (doloop_optimize_loops): Enable df_live if needed.
6106 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6108 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
6109 * gcc/config/rs6000/rs6000.c: Likewise.
6110 * gcc/config/rs6000/rs6000.h: Likewise.
6111 * gcc/config/rs6000/rs6000.md: Likewise.
6112 * gcc/doc/extend.texi: Likewsie.
6114 2016-01-14 Jeff Law <law@redhat.com>
6116 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
6119 2016-01-14 Richard Henderson <rth@redhat.com>
6123 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
6124 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
6125 instead of builtin_decl_declared_p to test for declaration.
6127 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
6129 * doc/loop.texi (Loop Analysis and Representation): Document
6130 loop_depth function.
6132 2016-01-14 Tom de Vries <tom@codesourcery.com>
6134 PR tree-optimization/68773
6135 * omp-low.c (expand_omp_target): Don't set force_output.
6136 * varpool.c (varpool_node::get_create): Same.
6137 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
6138 offload_funcs with force_output.
6140 2016-01-14 Jakub Jelinek <jakub@redhat.com>
6143 * lra-eliminations.c (move_plus_up): Don't change anything if either
6144 the outer or inner subreg mode is not MODE_INT.
6145 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
6146 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
6148 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
6150 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
6151 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
6152 reduc_uplus_@var{m}): Remove.
6153 * expr.c (expand_expr_real_2): Remove expansion path for
6154 reduc_[us](min|max|plus) optabs.
6155 * optabs-tree.c (scalar_reduc_to_vector): Remove.
6156 * optabs-tree.h (scalar_reduc_to_vector): Remove.
6157 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
6158 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
6159 * tree-vect-loop.c (vectorizable_reduction): Remove test for
6160 reduc_[us](min|max|plus) optabs.
6162 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
6164 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
6165 (reduc_plus_scal_v2sf): New.
6166 (reduc_smax_v2sf): Rename to...
6167 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
6168 (reduc_smin_v2sf): Rename to...
6169 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
6171 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
6173 * alias.c (compare_base_symbol_refs): New function.
6174 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
6177 2016-01-14 Jakub Jelinek <jakub@redhat.com>
6180 PR tree-optimization/69155
6181 * tree-complex.c: Include cfganal.h.
6182 (phis_to_revisit): New variable.
6183 (extract_component): Add phiarg_p argument. Assert that returned
6184 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
6185 (update_phi_components): Partly rewrite to use loop over real/imag
6186 components instead of code duplication. If extract_component returns
6187 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
6188 create_tmp_reg into the PHI node instead, and mention the phi triplet
6190 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
6191 in phis_to_revisit at the end.
6193 2016-01-14 Richard Biener <rguenther@suse.de>
6195 PR tree-optimization/68060
6196 * tree-vect-loop.c (vect_is_simple_reduction): Check the
6197 outer loop reduction is only used in the inner loop before
6198 detecting a double reduction.
6200 2016-01-14 Jakub Jelinek <jakub@redhat.com>
6203 * combine.c (expand_field_assignment): Punt if compute_mode is
6204 unsupported scalar mode.
6206 2016-01-14 Richard Biener <rguenther@suse.de>
6208 PR tree-optimization/66856
6209 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
6210 SLP node only if it built successfully.
6211 (vect_analyze_slp_instance): Adjust.
6213 2016-01-14 Jeff Law <law@redhat.com>
6215 PR tree-optimization/69270
6216 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
6217 (record_edge_info): Use it. Convert boolean_{true,false}_node
6220 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
6223 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
6224 use block_ultimate_origin
6225 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
6227 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
6229 * doc/invoke.texi (Submodel Options): Rename section to
6230 "Machine-Dependent Options" to better reflect its content.
6231 Rewrite introductory text to remove archaic CPU names.
6234 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
6236 * doc/invoke.texi (Code Gen Options): Move section up in file,
6237 before target-specific options. Update menu and option summary
6238 to reflect the new section ordering.
6240 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
6242 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
6243 (C++ Dialect Options): Add cross-reference to -std option.
6244 * doc/standards.texi (C++ Language): Document C++14 support.
6246 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
6248 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
6249 for pack/unpack functions for __ibm128.
6250 (PACK_IF): Likewise.
6251 (UNPACK_IF): Likewise.
6253 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
6254 support for __ibm128 pack/unpack functions.
6255 (rs6000_invalid_builtin): Likewise.
6256 (rs6000_init_builtins): Likewise.
6257 (rs6000_opt_masks): Likewise.
6259 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
6260 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
6262 (RS6000_BTM_COMMON): Likewise.
6264 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
6265 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
6266 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
6267 128-bit floating point. Add support for the double values to be
6268 in Altivec registers for TF/IF packing and unpacking, but restrict
6269 TD packing sub-fields to be FPR registers. Don't allow overlapped
6270 register support for packing. Allow pack inputs to be memory
6271 locations. Don't build generator functions for unpack<mode>_dm
6272 and unpack<mode>_nodm.
6273 (unpack<mode>_dm): Likewise.
6274 (unpack<mode>_nodm): Likewise.
6275 (pack<mode>): Likewise.
6277 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
6278 built-in functions to pack/unpack explicit __ibm128 values.
6279 (__builtin_unpack_ibm128): Likewise.
6281 * doc/extend.texi (PowerPC Built-in Functions): Document
6282 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
6284 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
6287 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
6288 Add new arg loc and pass it down as context.
6289 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
6290 to the location to use for the warning.
6291 (check_function_arguments): New arg loc. All callers changed. Pass
6292 it to check_function_nonnull.
6293 * c-common.h (check_function_arguments): Adjust declaration.
6295 2016-01-13 Jakub Jelinek <jakub@redhat.com>
6297 PR tree-optimization/69156
6298 * gimple.c (validate_type): Removed.
6299 (gimple_builtin_call_types_compatible_p): Use
6300 useless_type_conversion_p instead of validate_type.
6301 * value-prof.c (gimple_stringop_fixed_value): Fold
6302 icall_size to correct type.
6304 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
6306 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
6309 2016-01-13 Richard Henderson <rth@redhat.com>
6312 * target.def (builtin_tm_load, builtin_tm_store): Remove.
6313 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
6314 (ix86_builtin_tm_store): Remove.
6315 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
6316 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
6317 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
6318 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
6319 * doc/tm.texi: Rebuild.
6321 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
6322 (BUILT_IN_TM_MEMCPY_RTWN): New.
6323 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
6324 fallback from vector to integer helpers.
6325 (build_tm_load): Handle vector types directly, instead of
6327 (build_tm_store): Likewise.
6328 (expand_assign_tm): Prepare for register types not handled by
6329 the above. Copy them to memory and use memcpy.
6330 * tree.c (tm_define_builtin): New.
6331 (find_tm_vector_type): New.
6332 (build_tm_vector_builtins): New.
6333 (build_common_builtin_nodes): Call it.
6335 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
6337 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
6338 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
6340 2016-01-13 Tom de Vries <tom@codesourcery.com>
6342 PR tree-optimization/69169
6343 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
6344 handled_struct_type param.
6345 (create_variable_info_for, intra_create_variable_infos): Call
6346 create_variable_info_for_1 with extra arg.
6348 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
6350 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
6351 and "armv8.1-a+crc" entries.
6353 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
6356 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
6357 Change first operand predicate from register_or_constm1_operand
6358 to register_operand.
6359 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
6360 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
6361 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
6362 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
6363 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
6364 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
6365 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
6366 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
6367 comparison with constm1_rtx from vec_prefetch_gen part.
6369 2016-01-13 Richard Biener <rguenther@suse.de>
6371 PR tree-optimization/69013
6372 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
6373 Exchange assert for a test.
6375 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6378 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
6380 2016-01-13 Richard Biener <rguenther@suse.de>
6382 PR tree-optimization/69242
6383 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
6384 assert with a check.
6386 2016-01-13 Richard Biener <rguenther@suse.de>
6388 PR tree-optimization/69186
6389 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6390 Properly guard vect_update_misalignment_for_peel call.
6392 2016-01-12 Jeff Law <law@redhat.com>
6394 PR tree-optimization/pr67755
6395 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
6396 "need_profile_correction".
6397 (thread_block_1): Initialize new field to false by default. If we
6398 have multiple thread paths through a common joiner to different
6399 final targets, then set new field to true.
6400 (compute_path_counts): Only do count adjustment when it's really
6403 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
6405 * doc/invoke.texi (Spec Files): Move section down in file, past
6406 all command-line option descriptions.
6408 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6411 * doc/gty.texi: Remove documentation of mark_hook.
6412 * gengtype.c (struct write_types_data): Remove code to support
6413 mark_hook attribute.
6414 (walk_type): Likewise.
6415 (write_func_for_structure): Likewise.
6417 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
6419 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
6420 Directory Options, and -specs= to Overall Options.
6421 (Overall Options): Adjust similarly. Reorder to group related
6422 options together. Make -specs= cross-reference the spec file details.
6423 (Directory Options): Adjust similarly.
6425 2016-01-12 Jeff Law <law@redhat.com>
6427 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
6429 2016-01-12 Olivier Hainque <hainque@adacore.com>
6431 * gcc.c (spec_undefvar_allowed): New global.
6432 (process_command): Set to true when running for --version or --help,
6434 (getenv_spec_function): When the variable is not defined, use the
6435 variable name as the variable value if we're allowed not to issue
6438 2016-01-12 Bin Cheng <bin.cheng@arm.com>
6440 PR tree-optimization/68911
6441 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
6442 information computed for expression "init + nit * step".
6444 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
6446 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
6447 about name of GCC executable. Remove deleted node from menu.
6448 (Directory Options) <-B>: Remove cross-reference to deleted node.
6449 (Target Options): Delete section.
6451 2016-01-12 Christian Bruel <christian.bruel@st.com>
6454 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
6455 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
6457 2016-01-12 Jakub Jelinek <jakub@redhat.com>
6460 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
6461 aligned_mem is properly set for AVX512-VL floating point masked
6465 * ifcvt.c (cond_exec_process_if_block): When removing the last
6466 insn from then_bb, remove also any possible barriers that follow it.
6468 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
6472 * config/i386/iamcu.h (SIZE_TYPE): New macro.
6473 (PTRDIFF_TYPE): Likewise.
6474 (WCHAR_TYPE): Likewise.
6475 (WCHAR_TYPE_SIZE): Likewise.
6476 (STDINT_LONG32): Likewise.
6478 2016-01-12 Richard Biener <rguenther@suse.de>
6480 PR tree-optimization/69053
6481 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
6482 convert initial value for cond reductions.
6484 2016-01-12 Richard Biener <rguenther@suse.de>
6486 PR tree-optimization/69007
6487 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
6488 widen_sum after dot_prod and sad.
6490 2016-01-12 Richard Biener <rguenther@suse.de>
6492 PR tree-optimization/69168
6493 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
6494 pattern stmt SLP type.
6495 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
6496 end up unused so cope with that case.
6498 2016-01-12 Richard Biener <rguenther@suse.de>
6500 PR tree-optimization/69157
6501 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
6502 stmts def type only during analyze phase.
6503 (vectorizable_call): Likewise.
6504 (vectorizable_simd_clone_call): Likewise.
6505 (vectorizable_conversion): Likewise.
6506 (vectorizable_assignment): Likewise.
6507 (vectorizable_shift): Likewise.
6508 (vectorizable_operation): Likewise.
6509 (vectorizable_store): Likewise.
6510 (vectorizable_load): Likewise.
6512 2016-01-12 Richard Biener <rguenther@suse.de>
6514 PR tree-optimization/69174
6515 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
6517 (vectorizable_load): Properly compute the number of loads needed
6518 for permuted strided SLP loads and do not spuriously assign
6519 to SLP_TREE_VEC_STMTS.
6521 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
6523 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
6524 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
6525 (MD_EXEC_PREFIX): Remove.
6526 (MD_STARTFILE_PREFIX) Removee.
6527 (FILE_NAME_ABSOLUTE_P): Remove.
6528 (CPP_SPEC): Do not read macros from sys/version.h.
6529 (LINK_COMMAND_SPEC): Remove.
6530 (LOCAL_INCLUDE_DIR): Remove.
6531 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
6532 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
6533 (POST_LINK_SPEC): Define to invoke stubify after linker
6534 (LIBSTDCXX): Remove define
6535 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
6536 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
6537 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
6538 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
6539 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
6540 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
6541 (i386_djgpp_asm_named_section): Add propotype of new procedure
6543 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
6544 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
6545 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
6546 in config/i386/djgpp.h).
6547 (STANDARD_STARTFILE_PREFIX_2): Define identical to
6548 STANDARD_STARTFILE_PREFIX_1.
6549 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
6550 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
6551 installation errors.
6552 (MAX_OFILE_ALIGNMENT): Define to 128.
6553 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
6555 * config/i386/djgpp.c: New file. Add implementation of
6556 i386_djgpp_asm_named_section.
6558 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
6560 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
6561 Add rule for building djgpp.o.
6563 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6565 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
6566 (rtx_is_swappable_p): Reductions are swappable.
6567 (insn_is_swappable_p): V2DF reductions are swappable.
6569 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
6571 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
6572 reloads for other unsupported memory operands.
6574 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6575 Jim Wilson <jim.wilson@linaro.org>
6578 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
6579 copy_to_mode_reg instead of force_reg.
6581 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
6584 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
6585 TARGET_80387 is true.
6587 2016-01-11 Jakub Jelinek <jakub@redhat.com>
6590 * lra-eliminations.c (move_plus_up): Only move plus up
6591 if subreg of the constant can be simplified into constant
6592 and use the simplified subreg of the constant instead of
6593 the original constant.
6595 * fold-const.c (fold_convertible_p): Don't return true
6596 for conversion of VECTOR_TYPE to same sized integral type.
6597 (fold_convert_loc): Fix up formatting. Fold conversion of
6598 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
6599 instead of NOP_EXPR.
6601 PR tree-optimization/69214
6602 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
6603 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6606 PR tree-optimization/69207
6607 * tree-vect-slp.c (vect_get_constant_vectors): For
6608 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
6609 fold_convertible_p to vector_type's element type, and always
6610 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
6612 2016-01-11 Richard Biener <rguenther@suse.de>
6614 PR tree-optimization/69173
6615 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
6616 fixup the cycle if all stmts are in a pattern.
6618 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
6621 * alias.c (base_alias_check): Move check for addresses with
6622 alignment ANDs before the call for compare_base_decls.
6623 (memrefs_conflict_p): Return -1 for different decls
6624 that went through alignment adjustments.
6626 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6628 PR rtl-optimization/68796
6629 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
6630 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
6631 and QImode comparisons against zero with CC_NZmode.
6632 * config/aarch64/iterators.md (short_mask): New mode_attr.
6634 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
6636 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
6637 (<avx512>_store<mode>_mask): Likewise.
6639 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
6640 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6642 PR rtl-optimization/68841
6643 * ifcvt.c (struct noce_if_info): Add orig_x field.
6644 (bbs_ok_for_cmove_arith): Add to_rename parameter.
6645 Don't record conflicts on to_rename if it's present.
6646 Allow memory destinations in sets.
6647 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
6648 blocks, passing orig_x to the checks.
6649 (noce_process_if_block): Set if_info->orig_x appropriately.
6651 2016-01-11 Tom de Vries <tom@codesourcery.com>
6653 PR tree-optimization/69069
6654 * tree-parloops.c (create_parallel_loop): Add missing phi args.
6656 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
6658 PR rtl-optimization/68920
6659 * config/i386/i386.c (ix86_option_override_internal): Restrict number
6660 of conditional moves for RTL if-conversion to 1 for
6661 TARGET_ONE_IF_CONV_INSN.
6662 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
6663 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
6664 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
6665 parameter to restirct number of conditional moves for
6667 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
6668 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
6671 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
6674 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
6675 onepart vars. Fix typo in comment. Fix reversed condition in
6677 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
6680 * var-tracking.c (dump_onepart_variable_differences): New.
6681 (dataflow_set_different): If a detailed dump is requested,
6682 delay early returns and dump differences between onepart
6683 variables present before and after, and added variables.
6685 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
6688 * expr.c (expand_expr_real_1): For boolean vector constants
6689 with a scalar mode use const_scalar_mask_from_tree.
6690 (const_scalar_mask_from_tree): New.
6691 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
6692 assigned to a mask type to handle constants.
6694 2016-01-11 Martin Jambor <mjambor@suse.cz>
6697 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
6698 useless parameters if we cannot change function signature.
6700 2016-01-11 Martin Jambor <mjambor@suse.cz>
6703 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
6706 2016-01-11 Tom de Vries <tom@codesourcery.com>
6708 PR tree-optimization/69109
6709 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
6712 2016-01-11 Tom de Vries <tom@codesourcery.com>
6714 PR tree-optimization/69108
6715 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
6716 res is not used in a phi.
6718 2016-01-11 Yury Gribov <y.gribov@samsung.com>
6721 * common.opt (frandom-seed): Fix parameter name.
6722 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
6724 2016-01-11 Tom de Vries <tom@codesourcery.com>
6726 PR tree-optimization/69058
6727 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
6730 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
6732 * config/arc/arc.opt (mdiv-rem): Add period to the end.
6733 (mcode-density): Likewise.
6735 2016-01-10 Tom de Vries <tom@codesourcery.com>
6737 PR tree-optimization/69062
6738 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
6739 (parallelize_loops): Don't paralelize loop that has phi with address
6742 2016-01-10 Tom de Vries <tom@codesourcery.com>
6744 PR tree-optimization/69039
6745 * tree-parloops.c (try_create_reduction_list): Only allow single exit
6748 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
6751 * match.pd: Require target has function_c99_misc before doing
6752 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
6754 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
6756 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
6758 * configure: Regenerate.
6760 2016-01-09 Jakub Jelinek <jakub@redhat.com>
6763 PR tree-optimization/69097
6764 * fold-const.h (expr_not_equal_to): New prototype.
6765 * fold-const.c: Include stringpool.h and tree-ssanames.h.
6766 (expr_not_equal_to): New function.
6767 * match.pd (X % -Y is the same as X % Y): Don't optimize
6768 unless X is known not to be equal to minimum or Y is known
6769 not to be equal to -1.
6770 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
6771 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
6772 (simplify_stmt_using_ranges): Adjust caller.
6773 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
6774 substitute_and_fold.
6776 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
6778 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
6781 2016-01-08 Jakub Jelinek <jakub@redhat.com>
6783 PR tree-optimization/69167
6784 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
6785 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
6787 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
6789 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
6790 Richard Biener <rguenther@suse.de>
6792 PR tree-optimization/68707
6793 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
6794 instances that can be handled via vect_load_lanes.
6796 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
6798 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
6799 if we can't determine address equivalence.
6800 * alias.c (compare_base_decl): Update for changed return value of
6801 symtab_node::equal_address_to.
6803 2016-01-08 Jason Merrill <jason@redhat.com>
6807 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
6808 * expr.c (store_field): Not here.
6809 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
6810 call with TREE_ADDRESSABLE type.
6811 * tree-cfg.c (verify_gimple_call): Adjust.
6813 2016-01-08 Olivier Hainque <hainque@adacore.com>
6815 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
6818 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
6820 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
6821 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
6822 (reduc_smin_v2sf): Rename to...
6823 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
6824 (reduc_splus_v2sf): Rename to...
6825 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
6827 2016-01-08 Jakub Jelinek <jakub@redhat.com>
6829 PR tree-optimization/69162
6830 * gimplify.c (gimplify_va_arg_expr): Encode original type of
6831 valist argument in another argument.
6832 (gimplify_modify_expr): Adjust for the above change. Cleanup.
6833 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
6834 to determine the va_list type, build a MEM_REF instead of
6835 build_fold_indirect_ref.
6837 PR tree-optimization/69172
6838 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
6841 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
6843 PR tree-optimization/67781
6844 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
6845 and cmpnop in two steps: first the ones not accessed in original
6846 gimple expression in a endian independent way and then the ones not
6847 accessed in the final result in an endian-specific way.
6849 2016-01-08 Jakub Jelinek <jakub@redhat.com>
6851 PR tree-optimization/69083
6852 * tree-vect-slp.c (vect_get_constant_vectors): For
6853 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
6854 element type. If op is fold_convertible_p to vector_type's element
6855 type, use NOP_EXPR instead of VCE.
6857 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
6859 PR rtl-optimization/67778
6860 PR rtl-optimization/68634
6861 PR rtl-optimization/68909
6862 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
6863 block from the stack until done with it. Remove a superfluous
6864 bitmap set. Remove a superfluous bitmap test.
6866 2016-01-07 Martin Sebor <msebor@redhat.com>
6869 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
6870 constraint on the type of arguments.
6872 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
6874 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
6875 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
6876 unaligned_access on the gcc_options set.
6877 * config/arm/arm.c (arm_option_override_internal): Use
6878 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
6880 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
6883 * config/i386/i386.c (ix86_frame_pointer_required): Enable
6884 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
6886 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
6889 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
6892 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
6893 depending on frame_pointer_needed before remaining integer and SSE
6894 registers are saved.
6896 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
6899 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
6901 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6904 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
6905 Use the "xBm" constraint.
6906 (float<sseintvecmodelower><mode>2<mask_name><round_name):
6908 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
6909 (sse_cvtsi2ssq<round_name>): Likewise.
6910 (sse_cvtss2si<round_name>): Likewise.
6911 (sse_cvtss2siq<round_name>): Likewise.
6912 (sse2_cvtsi2sdq<round_name>): Likewise.
6913 (sse2_cvtsd2si<round_name>): Likewise.
6914 (sse2_cvtsd2siq<round_name>): Likewise.
6915 * config/i386/subst.md (round_nimm_scalar_predicate): New
6918 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
6921 * varasm.c (make_decl_rtl): Mark invalid register vars as
6924 PR rtl-optimization/66206
6925 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
6926 All callers changed.
6928 2016-01-07 Jakub Jelinek <jakub@redhat.com>
6930 PR tree-optimization/69141
6931 * tree-ssa-pre.c: Include langhooks.h.
6932 (eliminate_dom_walker::before_dom_children): Use
6933 lang_hooks.decl_printable_name instead of
6934 cgraph_node::get ()->name ().
6937 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
6938 it and DECL_ALIGN too.
6940 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
6942 * config/mips/mips-ftypes.def: Sort to lexicographical order.
6944 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
6947 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
6948 depending on frame_pointer_needed before remaining integer and SSE
6949 registers are saved.
6951 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6953 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
6954 mode iterator with VSX_M2.
6955 (*p9_vecstore_<mode>): Likewise.
6956 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
6957 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
6958 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
6959 (define_split for VSX_LE128 stores): Likewise.
6960 (define_peephole2 for TImode LE swaps): Likewise.
6961 (define_split for VSX_LE128 post-reload stores): Likewise.
6963 2016-01-06 Marek Polacek <polacek@redhat.com>
6966 * convert.c (convert_to_integer_1): Adjust call to
6967 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
6968 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
6969 EXPR instead of ARG.
6970 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
6972 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
6975 * doc/extend.texi (RL78 Variable Attributes): New section.
6977 2016-01-05 Marek Polacek <polacek@redhat.com>
6980 * builtins.c (get_memmodel): Use expansion point location rather than
6981 the input location. Call warning_at rather than warning.
6982 (expand_builtin_atomic_compare_exchange): Likewise.
6983 (expand_builtin_atomic_load): Likewise.
6984 (expand_builtin_atomic_store): Likewise.
6985 (expand_builtin_atomic_clear): Likewise.
6987 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
6990 * config/i386/i386.c (ix86_expand_vector_logical_operator):
6991 Replace nonimmediate_operand with vector_operand.
6992 * config/i386/predicates.md (vector_operand): New predicate.
6993 (general_vector_operand): Replace nonimmediate_operand with
6995 * config/i386/sse.md: Replace nonimmediate_operand with
6996 vector_operand and m constraint with Bm constraint on SSE
6997 patterns with 16-byte memory operand.
6998 * config/i386/subst.md (round_nimm_predicate): Replace
6999 nonimmediate_operand with vector_operand.
7000 (round_saeonly_nimm_predicate): Likewise.
7001 (round_saeonly_nimm_scalar_predicate): New.
7003 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
7006 * config/i386/constraints.md (Bm): New constraint.
7007 * config/i386/predicates.md (vector_memory_operand): New
7009 * config/i386/sse.md: Replace xm with xBm in plusminus and
7012 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
7015 * doc/extend.texi (V850 Function Attributes): New section.
7016 (V850 Variable Attributes): New section.
7018 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
7021 * doc/extend.texi (MicroBlaze Function Attributes): Document
7022 interrupt_handler and fast_interrupt attributes.
7024 2016-01-05 Sergei Trofimovich <siarheit@google.com>
7027 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
7028 for local symbolic operands.
7029 * config/ia64/predicates.md (local_symbolic_operand64): New
7032 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7034 PR rtl-optimization/68651
7035 * combine.c (combine_simplify_rtx): Canonicalize x + x into
7038 2016-01-05 Nathan Sidwell <nathan@acm.org>
7040 * alias.c (compare_base_decls): Use symtab_node::get.
7042 2016-01-05 Nick Clifton <nickc@redhat.com>
7045 * ira-costs.c (copy_cost): Initialise the t_icode field of the
7046 secondary_reload_info structure.
7049 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
7050 decls if weak support is available.
7052 2016-01-04 Martin Sebor <msebor@redhat.com>
7054 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
7056 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
7058 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
7059 OPTION_MASK_P9_DFORM.
7061 * config/rs6000/constraints.md (wo constraint): New constraint for
7064 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
7066 (rs6000_init_hard_regno_mode_ok): Likewise.
7068 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
7071 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
7072 expanders not to have constraints. Add support for ISA 3.0 xxperm
7073 instruction. Add support for fusing xxlor with xxperm.
7074 (altivec_vperm_<mode>_internal): Likewise.
7075 (altivec_vperm_v8hiv16qi): Likewise.
7076 (altivec_vperm_<mode>v16q): Likewise.
7077 (altivec_vperm_<mode>_uns): Likewise.
7078 (vperm_v8hiv4si): Likewise.
7079 (vperm_v16qiv8hi): Likewise.
7081 * doc/md.texi (RS/6000 constraints): Document wo constraint.
7083 2016-01-04 Jakub Jelinek <jakub@redhat.com>
7085 Update copyright years.
7087 * gcc.c (process_command): Update copyright notice dates.
7088 * gcov-dump.c (print_version): Ditto.
7089 * gcov.c (print_version): Ditto.
7090 * gcov-tool.c (print_version): Ditto.
7091 * gengtype.c (create_file): Ditto.
7092 * doc/cpp.texi: Bump @copying's copyright year.
7093 * doc/cppinternals.texi: Ditto.
7094 * doc/gcc.texi: Ditto.
7095 * doc/gccint.texi: Ditto.
7096 * doc/gcov.texi: Ditto.
7097 * doc/install.texi: Ditto.
7098 * doc/invoke.texi: Ditto.
7100 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
7102 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
7103 modes larger than TImode as TImode if NEON is not enabled.
7105 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
7108 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
7109 mode for %f0-%f31 only if TARGET_FPU.
7111 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
7114 * config/sparc/sparc.c (scan_record_type): Take into account subfields
7115 to compute the PACKED_P predicate.
7116 (function_arg_record_value): Minor tweaks.
7118 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
7120 * doc/install.texi (--with-multilib-list): Describe the meaning of the
7121 option for arm*-*-* targets.
7123 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
7125 * doc/extend.texi (Common Function Attributes): Move docs for
7126 MSP430-specific attributes to....
7127 (MSP430 Function Attributes): ...here. Delete the redundant
7128 entries and copy-edit the remaining text.
7129 (MSP430 Variable Attributes): Use uniform format for index
7130 entries and add a cross-reference to the corresponding function
7133 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
7135 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
7137 (x86 Options): Likewise.
7139 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
7143 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
7144 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
7145 to corresponding attribute.
7147 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
7149 * doc/extend.texi (Common Function Attributes) <noplt>: Move
7150 to correct alphabetization of table. Copy-edit and correct
7152 <stack_protect>: Likewise.
7153 <target_clones>: Likewise.
7155 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
7156 Correct punctuation.
7157 (Code Gen Options) <-fno-plt>: Copy-edit.
7159 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7162 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
7163 SI values. Explicitly convert SI to DI and vice-versa.
7165 2016-01-01 Jakub Jelinek <jakub@redhat.com>
7167 PR tree-optimization/69070
7168 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
7169 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
7172 * ubsan.c (ubsan_instrument_float_cast): Call
7173 initialize_sanitizer_builtins.
7176 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
7178 Copyright (C) 2016 Free Software Foundation, Inc.
7180 Copying and distribution of this file, with or without modification,
7181 are permitted in any medium without royalty provided the copyright
7182 notice and this notice are preserved.